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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

creating a new column based on multiple column results

Hello all,

 

i am stuck with what i think is quite a simple task, but just cannot get my head around it.

 

I have data columns ( 11 columns to be precise) which are extracting data from power apps with results being - true false or blank, as shown on screenshot.

 

What i want to do is create an additional column which will display results based on the following conditions. Check all the columns and:

- if there is only true results (and blanks) in the columns - "passed"

-if there are only false results (and blanks) - failed

- if true and false are displayed - partially passed

 

What i was thinking is to using switch function and checking column by column but this seems like a lot of DAX. so not sure if additional columns and some DAX is the best solution or if there are other possibilities but help is appreciated.

thanks!

truefalse column check.JPG

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, select all columns other than the 11 TRUE/FALSE columns and select "Unpivot other columns".  This should get you started.  To get more help, share the link from where i can download your PBI file. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, select all columns other than the 11 TRUE/FALSE columns and select "Unpivot other columns".  This should get you started.  To get more help, share the link from where i can download your PBI file. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.