Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
vardhancse
Specialist III
Specialist III

%Change YOY

Hi,

Have one requirement is that, required one line graph showing the %Change YOY based on the selection of metric.

**Its rolling 12 months based on the year and month filter.

Applied below expression:

Sum({<FYYear=,MonthName=,DateFull={">=$(=MonthStart(Max(DateFull),-12))<=$(=Date(Max(DateFull)))"}>}Actual)

But the requirement was :


Formula = (Current Value – Previous Value) / Absolute(Previous Value)


PFA sample application.


Thanks in advance.

5 Replies
MK_QSL
MVP
MVP

Like this?

vardhancse
Specialist III
Specialist III
Author

Hi Manish,

Thanks for your reply.

Sorry this is not my requirement.

1.Based on selected month and year, rolling 12 months like graph in terms of %

2. The graph should be %change YOY

Formula = (Current Value – Previous Value) / Absolute(Previous Value)



E.g:


       

FYMonth FYYear MonthMonthShortActualDateFullMetric
Jan-20132013JanuaryJan101/1/2013M1
Feb-20132013FebruaryFeb201/2/2013M1
Mar-20132013MarchMar301/3/2013M1
Apr-20132013AprilApr401/4/2013M1
May-20132013MayMay501/5/2013M1
Jun-20132013JuneJun601/6/2013M1
Jul-20132013JulyJul701/7/2013M1
Aug-20132013AugustAug801/8/2013M1
Sep-20132013SeptemberSep901/9/2013M1
Oct-20132013OctoberOct1001/10/2013M1
Nov-20132013NovemberNov1101/11/2013M1
Dec-20132013DecemberDec1201/12/2013M1
Jan-20142014JanuaryJan151/1/2014M1
Feb-20142014FebruaryFeb251/2/2014M1
Mar-20142014MarchMar351/3/2014M1
Apr-20142014AprilApr451/4/2014M1
May-20142014MayMay551/5/2014M1
Jun-20142014JuneJun651/6/2014M1
Jul-20142014JulyJul751/7/2014M1
Aug-20142014AugustAug851/8/2014M1
Sep-20142014SeptemberSep951/9/2014M1
Oct-20142014OctoberOct1051/10/2014M1
Nov-20142014NovemberNov1151/11/2014M1
Dec-20142014DecemberDec1251/12/2014M1

Selected month and year: Jun-2014


Graph should show jun-2014 to back jun-2013.


=(65-60)/60=8.33%


so in graph it should show for jun-2014: 8.33


similarly for all the 12 months back to the jun-2014



MK_QSL
MVP
MVP

How 65 and 60 is coming for Jun-2014?

Please clarify!

vardhancse
Specialist III
Specialist III
Author

Jun-2014: 65

Jun-2013: 60

**Please note that this is sample data

MK_QSL
MVP
MVP

Like this?