Forum Discussion

Kenneth's avatar
Kenneth
Frequent Visitor
9 years ago
Solved

KPI Indicator

Hi all,

 

I am trying to figure out how to use the KPI Indicator.  My aim is to be able to show the total number of customer complaints in a KPI indicator. I would like to filter on month and year. My current solution works fine when filtering on month. But when filter on year  the KPI indicator returns 0.

 

Below is my current solution which doesn´t work as planned

 

1. Measure, as below! I would like to count rows inluding the text "Customer Complaint"

 

Measure = if(isblank(CALCULATE(COUNTROWS(Agility),Agility[Sub-Type1] ="Customer Complaint")),0,(CALCULATE(COUNTROWS(Agility),Agility[Sub-Type1] ="Customer Complaint")))

 

2. When filtering on year and month it works as below picture

 

3. But when I filter on only year I get as below. I would like the KPI to show 6 and target 10 according to the table

 

Thank you for your help,

Kind regards,

Kenneth

 

3 Replies