cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Endjoy1
Frequent Visitor

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/

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!