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: 
stew_scott90
Contributor II
Contributor II

QTD KPI

Hi, I was wondering if someone would be able to assist with a KPI solution I'm trying to put together.

I'm wanting to have a KPI that displays the data for whichever Quarter we are currently in and one that shows the +/- difference between the current and previous QTR.

For example, based on todays date, the first KPI would show 90% and the second would show a +25%.

FYQTRFYQTRQTRStartQTREnd
FY17Q1FY17Q11/1/20173/31/2017
FY17Q2FY17Q24/1/20176/30/2017
FY17Q3FY17Q37/1/20179/30/2017
FY17Q4FY17Q410/1/201712/31/2017

FYQTRScore
FY17Q165%
FY17Q290%
2 Replies
aarkay29
Specialist
Specialist

may be like this

CurrentQtr

sum({<FYQTR={"$(='FY'&Date(max(Date),'YY')&'Q'&ceil(month(max(Date))/3) )"}>}SCORE)


+/- difference between the current and previous QTR

sum({<FYQTR={"$(='FY'&Date(max(Date),'YY')&'Q'&ceil(month(max(Date))/3) )"}>}SCORE)

-

sum({<FYQTR={"$(='FY'&Date(QuarterStart(max(Date),-1),'YY')&'Q'&ceil(month(QuarterStart(Max(Date),-1))/3))"}>}SCORE)

Anonymous
Not applicable

Take a look at the function InQuarterToDate(), it could be handy in your case.