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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 (2)
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.