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

Calculate current month YTD minus previous month YTD

Hello,

I have the table as shown below with YTD and MTD as expressions. 1.PNG

MTD = (Current month YTD) - (Previous month YTD).

My expression for MTD = YTD - Alt(Above(Total(YTD)), 0).

This expression is calculating correctly when selecting individual project number, but for all the project numbers selected It is calculating on per row basis which is completely wrong as shown in the below image;


Capture.PNG


Any idea on how to avoid it? (I want to calculate MTD as current month YTD - previous month YTD per Project_Number)


attached are files for your reference;

thanks


30 Replies
bhaveshp90
Creator III
Creator III
Author

It is not allowing to select 2016 and 2017 years, look at below;

1.PNG