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: 
rustyfishbones
Master II
Master II

Set Analysis Question

Hi All,

Is it possible to use Set Analysis within Set Analysis.

Like this example, which does not work

COUNT(DISTINCT {<SNAPSHOT_DATE = {">=$(=Date(MAX({<SNAPSHOT_DATE -= {'16/09/2017'}>}SNAPSHOT_DATE)-20,'DD/MM/YYYY'))"},FileType = {'HISTOPEN'}>}[Service Request Number])

This part works fine

COUNT(DISTINCT {<SNAPSHOT_DATE = {">=$(=Date(MAX(SNAPSHOT_DATE)-20,'DD/MM/YYYY'))"},FileType = {'HISTOPEN'}>}[Service Request Number])

I would like to count the Service Request Numbers for the last 20 days, but not include data for a specific date within those 20 days, can it be done in an expression using set analysis?

Regards

Alan

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Count(DISTINCT {<SNAPSHOT_DATE = {">=$(=Date(MAX(SNAPSHOT_DATE)-20, 'DD/MM/YYYY'))"}-{'16/09/2017'}, FileType = {'HISTOPEN'}>} [Service Request Number])

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

Count(DISTINCT {<SNAPSHOT_DATE = {">=$(=Date(MAX(SNAPSHOT_DATE)-20, 'DD/MM/YYYY'))"}-{'16/09/2017'}, FileType = {'HISTOPEN'}>} [Service Request Number])

rustyfishbones
Master II
Master II
Author

Yes, that's it, perfect