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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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"}))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors