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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current Month vs Prev Month- on selecting one month prev. month not calculating

Member NameCurrent Month AmountPrev. Month Amount
ABC100120
BSD120100
XYZ500550

Dear All,

Above is the table with Report i want to see.

i am using below mention set expression

for Current Month = =(sum({<MONTH1={'$(vMaxMonth)'}>} TRADE_VALUE))

for Prev. Month = =(sum( {<MONTH1={'$(vPrevMonth)'}>} TRADE_VALUE))

when i am not selecting any month, Year  or Month-Years deminsion is working fine . but when i am selecting any one month from the list then the prev. month amount is zero please help .

vMaxMonth = max(MONTH1)

vPrevMonth= max(MONTH1)-1

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Prev. Month = sum( {<Year,[Month-Years], MONTH1={'$(vPrevMonth)'}>} TRADE_VALUE)

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

Prev. Month = sum( {<Year,[Month-Years], MONTH1={'$(vPrevMonth)'}>} TRADE_VALUE)

Not applicable
Author

Thanks Tresesco.