Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kenneth
Frequent Visitor

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

KPI 1.JPG

 

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

KPI 2.JPG

 

Thank you for your help,

Kind regards,

Kenneth

 

1 ACCEPTED SOLUTION

@Greg_Deckler

I found some information in below link. It doesn´t completely fulfill my needs, but good enough

 

http://community.powerbi.com/t5/Desktop/KPI-Visualization-with-Trend/td-p/132259

 

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Would need to see some sample data because I don't see anything obvious. Perhaps there is something wonky with your Year slicer and you are using a Year from a different table?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Please find some tables below. My idea is to build up a dashboard and I need to be able to filter on Date ( year & month) and Terminal.

  

 KPI3.JPGKPI4.JPG

Thanks

K

 

 

 

 

 

 

@Greg_Deckler

I found some information in below link. It doesn´t completely fulfill my needs, but good enough

 

http://community.powerbi.com/t5/Desktop/KPI-Visualization-with-Trend/td-p/132259

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.