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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DGID
Frequent Visitor

Changing text column into specific numbers.

Hello 

 

I am trying to make a key from 2 columns of responses. The results are either Happy, Neutral, or Unhappy and there are only two columns with those responses. I want to make a new column that has the total "score" where:

Happy = 1

Neutral = 0

Unhappy = -1 

 

I've tried sumx with switch nested inside to try and get this to work but have not had any luck.

 

To clarify in the data the columns are the 1st and 2nd Interview Outcome in the HRSYST1 table.

 

PBIX File

 

Copy of Data

 

Thank you in advance

1 ACCEPTED SOLUTION
DGID
Frequent Visitor

I ended up creating 6 columns for each value i.e. one for the 1st  outcome happy, one for the 2nd outcome happy etc and then adding those together to get my total column.

 

I feel like there has to be a more efficient way but that was all I could come up with.

 

Thank anyone for any insight.

View solution in original post

1 REPLY 1
DGID
Frequent Visitor

I ended up creating 6 columns for each value i.e. one for the 1st  outcome happy, one for the 2nd outcome happy etc and then adding those together to get my total column.

 

I feel like there has to be a more efficient way but that was all I could come up with.

 

Thank anyone for any insight.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors