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

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

Reply
djwbaker
Frequent Visitor

fail if one part fails

Hi 
working out product availability. the parts can have multiple components
is there a way to give a partial fail if just one component fails?
components are worked out in a table using calculated column, i would like to do a graph showing just the parent part and if the sum of components is ok or fail

example part below and headers from table

djwbaker_0-1612171334684.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@djwbaker , Not very clear.But you need like

 

if(isblank(calculate(count(Table[purhase_part]), filter(Table, Table[Part] ="fail"), allexcept(Table, Table[ord_part])) ) ,"OK", "Fail")

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@djwbaker , Not very clear.But you need like

 

if(isblank(calculate(count(Table[purhase_part]), filter(Table, Table[Part] ="fail"), allexcept(Table, Table[ord_part])) ) ,"OK", "Fail")

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

@amitchandak i am using slicers in my report how can i adapt the measure to work?
tried allselected instead of allexcept but it fails
many thanks

worked perfectly thank you

djwbaker_0-1612181242204.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.