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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Calculated Dimension

Ok guys need a little help with calculated dimensions (Haven't went down this route yet). I have 2 fields QTY and TIMES WORKED. I am trying to get a simple status. This is what I have tried but with no luck. If the statement is true I want to use the literal 'In-Process' else the actual status description.

Thanks

=if(QTY - if(Status = 'NS',0,(count(Distinct WEDAT))) < QTY,'In-Process', [STATUS DESC])

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

when you are using calculated function like count or sum in calculated dimension we have to use aggr function.

aggr(count(t2), t1)..

tmumaw
Specialist II
Specialist II
Author

where would the aggr be placed and would I only use one?

deepakk
Partner - Specialist III
Partner - Specialist III

hi,

I hope the attach application helps you out.