cancel
Showing results for 
Search instead for 
Did you mean: 

OVP Donut chart not aggregating the data.

dheerajahuja000
Advisor
Advisor
0 Kudos

I'm using OVP Donut chart and by default, it's not aggregating the data for given measures.
It takes the first record by default and shows the count. The response data is like below:

{ "d": { "results": [ { "MKTUNITID": "Austria", "TOTCOUNT": 1, "STATUSID": "NW", "__metadata": { "type": "Oservice.SOLREQMU" } },

{ "MKTUNITID": "Austria", "TOTCOUNT": 1, "STATUSID": "NW", "__metadata": { "type": "Oservice.SOLREQMU" } },

{ "MKTUNITID": "Austria", "TOTCOUNT": 1, "STATUSID": "NW", "__metadata": { "type": "Oservice.SOLREQMU" } },

{ "MKTUNITID": "Austria", "TOTCOUNT": 1, "STATUSID": "NW", "__metadata": { "type": "Oservice.SOLREQMU" } },

Ideally, it should add the "TOTCOUNT" for Austria and show the data as total "4" but somehow it's not aggregating it by default. Is there any annotation required to add up this data. I'm already using DataPoint annotation.

View Entire Topic
MioYasutake
Active Contributor

Hi dheerajahuja000,

I think your measure property needs annotation @DefaultAggregation:#SUM.

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/7.5.9/en-US/5e5d319bd1a74552b99a36dfc73...

Regards,

Mio