When the cube is created and sum is chosen it returns a sum and a count in the value context when output as json. How can that be turned off so only the sum value is returned?
//define cube pivot
var cubeData = new PivotData(
new[] { "CloseDate", "StageName", "Type", "OpportunityName","Industry", "IsClosed", "IsWon" },
new SumAggregatorFactory("Amount"),
true);
json = new
{
cubeData,
};
return json;
Output shows
"cubeData": [
{
"key": [
"2019-07-05T00:00:00",
"Stage Value",
"Type Value",
"Opportunity Name Value",
"Industry Value",
false,
false
],
"value": {
"value": 35000.0,
"count": 1
}
},