Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sharasridhar
Contributor III
Contributor III

KPI within a KPI

I have a data of your Fiscal years. 

I need to create a KPI which displays two values. The main one will give the CollectionRate, and the second one the CollectionRate for the year before. When viewing the sheet, when I use the Year filter to select 2017, the values should show 2017 rate along with 2016 rate. 

The year is taken from the patient admission date and the CollectionRate=TotalPayed/TotalCharged

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

use set analysis and create your KPIs something like below. 

sales for the current/max year (or selected) Sum({<Year={"$(=Max(Year))"}>}LineSalesAmount)

sales for the previous year -  Sum({<Year={"$(=Max(Year)-1)"}>}LineSalesAmount)