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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors