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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Luca21
Frequent Visitor

Showing a kpi only in particular conditions

Hi,

 

I have a table where I show some measures (that aggregates values from different tables). These measures are grouped by a Category.

I would like to show a kpi just for some of these categories.

In the following example I would like to show the kpi just for category "two" and "four".

Categoryactualplacedplannedkpi
one100120150 
one 200240190 
two100120150OK
two200240190KO
two100120150OK
three200240190 
four100120150OK

 

How can i get this result?

 

Thanks for any suggestions

 

Luca

1 ACCEPTED SOLUTION

I tried  the solution of but I had the problem that the filter should be done on an aggregate value but I needed to use a row value.

So i created a new measure that aggregate for the same table some default values and based on this new measure I can use the DAX expression suggested by .

 

L

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Luca21 , You can use a slicer and filter the value of the category

 

Also, you can create measures like

placed new  = calculate([placed], filter(Table, Table[Category] in {"two", "four"}))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks for your prompt answer.

It is not exactly the soluton I was looking for, but you give me a suggestion to solve my problem in other way.

 

Thanks

 

L

@Luca21 , Good to know that your issue is resolved. Kudos to you. Please share the solution if possible

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

I tried  the solution of but I had the problem that the filter should be done on an aggregate value but I needed to use a row value.

So i created a new measure that aggregate for the same table some default values and based on this new measure I can use the DAX expression suggested by .

 

L

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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