Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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.