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: 
aaronnayan
Creator III
Creator III

Can you merge the 2 set analysis expressions?

Hi Guys

Can you merge these two expressions if possible?

Into 1 expression

sum({$<ADVISORS={"JAMES"}>}SALES)     +          Sum({1<DEC_Month={'$(vCurrMth)'}>}SALES)

3 Replies
tresesco
MVP
MVP

If you want to get the sum of them using one expression, try like:

using OR logic:

sum({$<ADVISORS={"JAMES"}> + <DEC_Month={'$(vCurrMth)'}>}SALES)

if you want both the condition to be true, try like:

using AND logic:

sum({$<ADVISORS={"JAMES"} , DEC_Month={'$(vCurrMth)'}>}SALES)

aaronnayan
Creator III
Creator III
Author

Hi TResesco

Its not picking up the variable. I want it to calculate it using for the current month

Could you help?

tresesco
MVP
MVP

If variable is an issue, try like:

DEC_Month={'$(=Month(Today()))'}


If the month format of your field matches with the format return by the expression, it should work.