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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.