Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Formula explanation please!!!

Hi folks,
Can anyone kindly explain to me how the below formula works?
Max(Total Aggr(Count( Distinct {<[Case Owner]={*}>}%CaseId), [Case Owner]))
Especially I want to clearly understand this part {<[Case Owner]={*}>}%CaseId)
Thanks in advance!!!
Labels (1)
4 Replies
Anonymous
Not applicable
Author

Part {<[Case Owner]={*}>}%CaseId) returns %CaseId which has "Case Owner".
So,
(Count( Distinct {<[Case Owner]={*}>}%CaseId) - counts number of cases which have case owner.
Next, aggr(...,"Case Owner") - the count above is grouped by case owner.
And,
max() - returns the max number of cases per case owner.
"total" means ignore dimensions in the chart where this expression is used - can't guess more.

Hope it helps...

Not applicable
Author

So, I can assume that <[Case Owner]={*}> means every case owner in the list.

Could this one be used instead??

Max(Total Aggr(Count([%CaseId]), [Case Owner]))

Thanks!!

rohit214
Creator III
Creator III

hi

{<[Case Owner]={*}>}%CaseId)

it means all  value of Case owner field

thanks

rohit


Anonymous
Not applicable
Author

Max(Total Aggr(Count([%CaseId]), [Case Owner]))  is close but not exactly the same.  The * "selects" all values - that is it "excludes" Case Owner that is not assiciated with any case.  But it all depends of the overall data model and the data itself - it may or may not be the same..