cancel
Showing results for 
Search instead for 
Did you mean: 
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 IV
Super User IV

@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.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
amitchandak
Super User IV
Super User IV

@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.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

@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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors