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

To calculate amount in Current Month - amount in Previous Month

Hi All!

I have to calculate  the difference of Amount in current month with the Amount in previous month. 

when March is selected  = Amount for March - Amount for Feb

when Jan is selected = Amount for Jan 

 

right now when I select in the filter more than 1 month, I'm getting the values. 

if I select Feb to April, I'm getting the values. 

 

Labels (3)
1 Reply
vinieme12
Champion III
Champion III

if you have yearmonth as dimension then you can try this

 

Sum(Amount)- aggr(above(Sum({1}Amount)),YearMonth)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.