I am a bit confused about what I am doing and need some help.
I have the script below which works out the median of value in the script. the median values are to be used later as KPI object.
My question is What expression can I write to create the KPI object so that it is still dynamic and when users make selections they are shown the Median of the selection given it has been calculated in the script. Do I sum?Avg? the median field
Please Note this is based on large data set hence why we decided to calculate the median in the script.