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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gcongrove
Frequent Visitor

I want to create a row with value of "Pass" or "Fail" depending on value of another column

I am a little new to PowerBI and very new to the DAX portion.    I have a column (named App Status) in powerBI that contains the status for various software versions. The value's of this column contain data such as "replace", "SCCM install corp version", "must re-install" or "SOE"

 

Capture.PNG

 

I want to evaluate ALL values in "App Status" column, and depending on those values create another value of either "pass" or "fail"

something like, If cell value of app status = "replace", or " manual re-install", or "sccm install corp approved version" then i would display pass.

If any of the values in "app status" contain "SOE" then i would display a value of fail.

 

I have no idea how to come up with this information. I would appreciate any help.

Thank you

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Easiest way would be to create a new group on that field and assign to pass/fail as appropriate?

View solution in original post

4 REPLIES 4
YJ
Resolver II
Resolver II

Hi, @gcongrove 

you can use the SWITCH function on a calculated column:

 

ToDISPLAY = SWITCH(Table1[STATUS],"A","Pass","B","Fail","C","Pass")

20191025_BI_gcon.JPG

jthomson
Solution Sage
Solution Sage

Easiest way would be to create a new group on that field and assign to pass/fail as appropriate?

yes that worked nicely! I was not familiar with the group option.

 

Follow up question. Now that I have the new group created, is there a way to hightlight the "failed" value.  So that it is easier to spot in a list of pass values?

@gcongrove 

Yes of course,

click on your table, go to format, conditional formating, select your required field ( display etc) select background or other form of formatting and set the condition.

 

If it helps, kindly cliose this off and set it as the solution. Kudos are nice too=)

 

regards

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.