Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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

1 Solution

Accepted Solutions
sunny_talwar

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

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