Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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.