Removing aggregation options

Answered
Sumukh asked 6 days ago

Hi,
I want to remove a few aggregations which appear in the fields window. such as “Sample StDev”,”Population StDev”. I know how to remove from the context menu using customizeContextMenu() . But need help to remove aggregation submenu from fields and from every other place where the aggregation is available.
So can you please tell is there any workaround.

Attachments:
filter window.png

1 answer

Public
Dmytro Zvazhii Flexmonster 6 days ago

Hello Sumukh,
Thank you for your question.
 
The Sample StDev and Population StDev aggregations can be removed from the list using availableAggregations approach: https://www.flexmonster.com/api/slice-object/. You can define the list of aggregations which is supported for each measure: https://jsfiddle.net/flexmonster/tp80euuq/.
 
In case you need totaly disable aggregation drop-down, please use showAggregations options property: https://www.flexmonster.com/api/options-object/.
 
Let us know if everything works fine for you.
Regards,
Dmytro

Please login or Register to Submit Answer