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: 
jennifej
Contributor
Contributor

KPI to Show Current Year Data Only

Hi there! I am trying to calculate a KPI with two fields and only the current year (2021) data but the set of data I am working with has data from previous years. 

  1. I need to separate and display the Test Name (there are 3 different types of tests within the field and I want to show a KPI for each test separately)
  2. I need to exclude all Test Dates prior to 2021 (or only include test dates from 2021 and forward)

Any insight would be much appreciated.

Thanks!

1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

Hello, Not sure you expected based on a test for KPI, But this can be done?

FirstSortedValue(testname, -Aggr(Your expression, Dimension), 1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

1 Reply
Anil_Babu_Samineni
MVP
MVP

Hello, Not sure you expected based on a test for KPI, But this can be done?

FirstSortedValue(testname, -Aggr(Your expression, Dimension), 1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful