cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Output based on different Columns

Hi,

 

In my table i have a few columns that have different solutions, which was derived from our survey. Is there a way i can capture those solutions into 1 column so i can get their mix?

 

EmployeeSolution 1Solution 2Solution 3Solution 4Chosen Solution
1 x  Solution 2
2  x Solution 3
3x   Solution 1
4   xSolution 4
3 ACCEPTED SOLUTIONS

Hi Greg,

 

i can't, the solutions are calcualted columns based on the employee's different entries in the survey. 

View solution in original post

Super User IV
Super User IV

@Lobs 

In Power Query, right click on employee Column, Select Unpivot Other columns,

Fowmy_0-1598031229572.png

Filter VALUE Column  = x and delete VALUE column

Fowmy_2-1598031323979.png

 

Fowmy_3-1598031344464.png

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Super User IV
Super User IV

@Lobs , see if this column calculation can work

switch(true(),
not(isblank([Solution 1])), "Solution 1",
not(isblank([Solution 2])), "Solution 2",
not(isblank([Solution 3])), "Solution 3",
"Solution 4")



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

6 REPLIES 6
Super User IV
Super User IV

@Lobs , see if this column calculation can work

switch(true(),
not(isblank([Solution 1])), "Solution 1",
not(isblank([Solution 2])), "Solution 2",
not(isblank([Solution 3])), "Solution 3",
"Solution 4")



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Thank you this worked. I also learned the UnPivot too, which i used on my other table.

Super User IV
Super User IV

@Lobs 

In Power Query, right click on employee Column, Select Unpivot Other columns,

Fowmy_0-1598031229572.png

Filter VALUE Column  = x and delete VALUE column

Fowmy_2-1598031323979.png

 

Fowmy_3-1598031344464.png

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Thanks, this worked on my other table lol. Appreciate it

Super User IV
Super User IV

@Lobs - I would unpivot your Solution columns in Power Query.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Greg,

 

i can't, the solutions are calcualted columns based on the employee's different entries in the survey. 

View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

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

Top Solution Authors
Top Kudoed Authors