Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show last report date KPI?

Hi,

I have a Sales measure where the dates are unevenly spaced. How can I create a KPI where the first measure is the sales of the current selection date and the second measure is the sales of the previous report date, conditional on the current selection date?

Thank you.

3 Replies
santhoo_san
Partner - Creator II
Partner - Creator II

Create an id for each of the period you wish to view the KPI and apply your condition based on the ID

Not applicable
Author

Hi Santhosh. Okay, I've created ID for each date. How can I create condition based on them? Thanks.

santhoo_san
Partner - Creator II
Partner - Creator II

Current Period:

Sum({<PeriodID={$(=Max(PeriodID))} >}Measure)


Previous Period:

Sum({<PeriodID={$(=Max(PeriodID)-1)} >}Measure)