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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Less than in Set Analysis

Hi All

I cant find the right syntax for less than in a set analysis. I am having a variable that returns the nr for the open month or max selected month. I want to put this into a set analysis for MonthNr but I cant find the right syntax.

sum({<MonthNr????{$(vMonthNr)}>}Cost)

I am happy for any help.

//Fredrik

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try..

sum({<MonthNr={"<$(=num(vMonthNr))"}>} Cost )

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Try..

sum({<MonthNr={"<$(=num(vMonthNr))"}>} Cost )

MK_QSL
MVP
MVP

=SUM({$<MonthNr= {'<$(=NUM(vMonthNr))'}>}Cost )

Not applicable
Author

Thanks for your reply. It should work fine. I found the right syntax after posting this on the thread. I wrote it like this.

MonthNr={"<=$(vMonthNr)"}

And that worked fine.

Not applicable
Author

Thanks for your reply. It should work fine. I found the right syntax after posting this on the thread. I wrote it like this.

MonthNr={"<=$(vMonthNr)"}

And that worked fine.