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

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

Community Champion
Community Champion

@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

 

 

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 - 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

Community Champion
Community Champion

@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

 

 

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

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

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

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors