Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

want to find median of days by time(cyclic group-quarter,month,week) dimension

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)))

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

It´s the same name you can see into your Dimensions tab

View solution in original post

4 Replies
Clever_Anjos
Employee
Employee

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)))

Not applicable
Author

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.

Clever_Anjos
Employee
Employee

It´s the same name you can see into your Dimensions tab

Not applicable
Author

Thank you Anjos for your help.