Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis in Charts with Previous Year data

How do i insert previous years data into a compliance precentage graph?

I am currently using this expression to calculate the percentage;

=(Sum({$<Target={"62 Day Screening"}>}Acountability)

-

Sum({$<Target={"62 Day Screening"},[Breach Indicator]={Y}>}Accountability})

/

Sum({$<Target={"62 Day Screening"}>}Accountability)

*100

I have a slider select for the Financial Year and would like to show the previous years info dependant on which financial year is selected.

Can anyone help?

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Let's say your slider is linked to variable vFinYear, and you have a FinancialYear field, add the fin year to the set expressions like this

(Sum({$<Target={"62 Day Screening"}, FinancialYear = {"$(vFinYear)"}>}Acountability)...

Add the fin year clause to all the set expressions in the same way as above. Modify the expressions as required to match your data model.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein