Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Bluedot24
Partner - Contributor II
Partner - Contributor II

How to get amount from last month (December) of prior year

Hi,

 

I am new to Qlik Sense and am still finding my way around.

 

Can someone help me in figuring out how to get the amount from prior year December.

For e.g. If my current period = Feb 21

I would want to compare this value with Dec 20.

 

No matter what month is selected in 2021, I would always want to compare with Dec 20.

 

Thank you

 

1 Solution

Accepted Solutions
MayilVahanan

Hi @Bluedot24 

Try like below

Sum({<Date={">=$(=MonthStart(YearEnd(Max(Date),-1)))<=$(=MonthEnd(YearEnd(Max(Date),-1)))"}, Year=, Month=, Quarter=>}Sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi @Bluedot24 

Try like below

Sum({<Date={">=$(=MonthStart(YearEnd(Max(Date),-1)))<=$(=MonthEnd(YearEnd(Max(Date),-1)))"}, Year=, Month=, Quarter=>}Sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.