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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need values for all Month less than the one selected in the list box

My requirement is that, when a user selects any month in the list box, user should be able to see the sales values from Jan to selected Month in the straight table .

In my current scenario, when user selected Sep, all the values from Jan to Aug becomes Zero. Where as I want value to be displayed form Jan to sep and not just Sep

Example.png

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try a set expression:

Sum({<MonthField = {"<=$(=max(MonthField))"}>} SalesField)

Or


Sum({<MonthField = {"=MonthField<=$(=max(MonthField))"}>} SalesField)


Replace MonthField and SalesField with your appropriate field names.

View solution in original post

2 Replies
swuehl
MVP
MVP

Try a set expression:

Sum({<MonthField = {"<=$(=max(MonthField))"}>} SalesField)

Or


Sum({<MonthField = {"=MonthField<=$(=max(MonthField))"}>} SalesField)


Replace MonthField and SalesField with your appropriate field names.

vikasmahajan

Hi,

WelCome

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.