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: 
ryanlessig
Contributor
Contributor

Find % Difference between continuous Months

Hello,

I am working in QlikSense trying have a continuous calculation comparing month to month of a value, based on the month dimension.

Here is a sample table, this table goes back 11 years.

Euro.Month and YearEuro.Database Rate% Difference vs. Last Month
June 2018

1.2250

-3%
May 20181.26004%
April 20181.21501%
Mar 20181.20002%

I want to calculate what is in the % Difference vs. Last Month column, in QlikSense. The basic math is (CurrentMonth/Previous Month)-1

Here is the expression I have:

Sum({<[Euro.Month and Year.autoCalendar.Month]>}[Euro.Database Rate])/Sum({<[Euro.Month and Year.autoCalendar.Month]>-1}[Euro.Database Rate])-1

It is not returning any value. Any suggestions would be appreciated!

Thanks!

3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

assuming you'll keep the months sorted in descending order

you can use this formula

Sum[Euro.Database Rate])/below(Sum([Euro.Database Rate]))-1

praveenkumar_ma
Partner - Creator
Partner - Creator

may be Helpful

Sum[Euro.Database Rate])/Before(Sum([Euro.Database Rate]))-1...



Regards

PM

sunny_talwar

Or this if you would be making selection in 'Euro.Month and Year' field

Sum[Euro.Database Rate])/Below(Sum({<[Euro.Month and Year]>}[Euro.Database Rate]))-1