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: 
richard_chilvers
Specialist
Specialist

Set Analysis parameters


I admit that set analysis is not my greatest strength.

I have an expression :

SUM({$<WK_BOOKED = {$(#=GetFieldSelections(WK_BOOKED))}, etc......

This works fine to select values where WK_BOOKED is the currently selected week. I'd now like to change it to select values for all weeks up to the currently selected week, ie. weeks 1-(selected week).

I have searched documentation to find how my set might be changed for this.

All help appreciated.

2 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

Here is a sample SET code for you to wok on:

=count({<Date_In = {'>=$(=date($(vStartDate)))<=$(=date($(vEndDate)))'}>}COUNTER)

essentially, you will have a Date type field, and a Date Range saved in Variables.

Assuming, WK_BOOKED is numeric, Can you try {'<=$(#=GetFieldSelections(WK_BOOKED))'}

richard_chilvers
Specialist
Specialist
Author

Thanks. I've had a quick go with this and it seems to work well, although I need to validate the results.

Regards