Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jlampard40
Contributor III
Contributor III

RangeSum - really stuck...!

I have a set analysis formula which is working really well, to give me an overall number of clients currently waiting for a surgical procedure:

=Count({$<[WBR_Stat_Date]={"$(=Date(Today(),'DD/MM/YYYY'))"}>} RangeSum([WBR_Event_Date], -[WBR_Clock_Reset_Date]))

[WBR_Stat_Date] = the current date of the report, and I always need this to be today's date, which this formula is achieving.

[WBR_Event_Date]-(WBR_Clock_Reset_Date] - is what I need to calculate (one minus the other) to give me days waiting.  Again, this formula does this well.

What I need to do now, is to only count when the days waiting is over 14 days.  Can anyone please advise how I can achieve this, within the current set analysis I have?  Many thanks.

Labels (1)
2 Replies
qliksus
Specialist II
Specialist II

Not sure why you use rangesum for this requirement . why cant you try this

=Count({$<[WBR_Stat_Date]={"$(=Date(Today(),'DD/MM/YYYY'))"} cleint ) * purgechar( [WBR_Event_Date]-[WBR_Clock_Reset_Date])>14 ,'-')

Brett_Bleess
Former Employee
Former Employee

James, did the other post take care of your requirement, or are you still stuck?  If things worked, please be sure to circle back to use the Accept as Solution button on the posters comment to give them credit and let others know that did meet your requirement.  If you are still working on things, leave an update.

The only other thing I can offer here is a Design Blog post that may provide some further insights potentially.

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.