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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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

Fowmy
Super User
Super User

@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! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

amitchandak
Super User
Super User

@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")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@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")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Fowmy
Super User
Super User

@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! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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

Greg_Deckler
Community Champion
Community Champion

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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

 

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors