Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik folks,
I want to find the median of days by time(cyclic group-quarter,month,week) dimension.
I have developed the following formula but when the values of bar chart are broke by time dimension, getting weird values.
Any help will be appreciated please.
=median(NetWorkDays(aggr(min({$}ADate),ContractID),
aggr(max({$}ADate),ContractID)))
It´s the same name you can see into your Dimensions tab
Are you using a Cyclic Dimension right? Use it inside your AGGR´s, supposing your group is named "New Group":
=median(NetWorkDays(aggr(min({$}ADate),$(=GetCurrentField([New Group])),ContractID),
aggr(max({$}ADate),$(=GetCurrentField([New Group])),ContractID)))
Thanks for your response Anjos. But my cyclic group expression do not have a name (I could not find to name it). I am using Qlikview version 11.20xxxxxSR12. Any help will be appreciated.
It´s the same name you can see into your Dimensions tab
Thank you Anjos for your help.