Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
JMA_1
Contributor
Contributor

Problems with set expression vMaxYearMonth - vPreviousMonth / period quantities

Hey,

My goal is to have period quantity figures when I already have the cumulative ones.

I have set the following variables

VariablesVariables

The formula that I used in expression:

ExpressionExpression'

The end result you will find below:

ResultResult

Period quantity expession is not working as I wanted to. Cumulative quantity expression (=sum(TOT_Määrä) work just fine.

Could you guys help me with this problem?

 

 

 

 

 

2 Replies
balabhaskarqlik

Try this:

Sum({<YearMonth = {'$(=vMaxYearMonth)'}>}TOT_Maara) -
Sum({<YearMonth = {'$(=vPrevYearMonth)'}>}TOT_Maara)

JMA_1
Contributor
Contributor
Author

Thank you for your response but it didn't sovle the problem.