Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Bobblee
Contributor
Contributor

How to calculate the comparison between the current FY and the previous one

Hello everyone, 

I am new in Qlik and I am struggling with the calculation of the FYs. I've created the Master Calendar as you will see in the table below.

I've created also 2 master items:

YTD = Sum({<
fYear,FMonth,Month,Year,Date={">=$(=YearStart(max(Date),0,4))<$(= addyears(max(Date), 0))"}
>}Cells2G)

PreviousYTD = Sum({<fYear,FMonth,Month,Year,Date={">=$(=YearStart(max(Date),-1,4))<$(= addyears(max(Date), -1))"}>}Cells2G),

but the calculation is not accurate...

What I need as an end result is to represent in a Single Value Chart the percentage resulting from (YTD / PreviuousYTD - 1)*100.

Thank you!

0 Replies