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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SetAnalysis issue - how to compare two dimensions

Dear Community,

I'm new person here still learning new thing, and I'm struggling with SetAnalysis function.

I have set of data - fact table storing how much time each request spend in department

And dimension, saying to which department this request is currently signed.

What i need to find is number of request which are in current department for defined period of time ( below 4 hours, 4-8 hours, above 8 hours).

So i would like to get following results:

DeptBelow 4h 4-8Above 8
A1
B11
C1

I tried to write sum function, calculating time spent only for current department, but such syntax doesn't return me correct values:

Sum({$<DayID-=P({1<DepartmentID={$(=CurrentDepartmentID)}>}DayID)>}[Time Spent in h])

I'm attaching file with simple data.

I'll be very gratefull for your help.

Regards,
Greg

10 Replies
Not applicable
Author

This is what I need.

Sunny and Pooja, thank you very much for your help !