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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Add column and Sum based on text value

Need help!!!

 

I am having 1 table as below and want to add 4 columns as “Delighted”,”Satisfied”,”Very Satisfied”,”Dissatisfied”

  1. How can add the column with the logic
  • Of each row, how can I sum “25%” to the text “Delighted” from each column “B,C,D,E”?

8-12-2020 10-08-39 PM.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gauravnarchal 

 

I have abbriviated the column names and you can use it as per your need.

 

Below is the screenshot of the output and column DAX formula.

Change the new created columns to percentage as in the screen shot to see the data in %

 

 

 

Dlighted      = IF('Table'[A]="DL",.25,0)+IF('Table'[B]="DL",.25,0)+IF('Table'[C]="DL",.25,0)+IF('Table'[D]="DL",.25,0)
Very Satisfied= IF('Table'[A]="VS",.25,0)+IF('Table'[B]="VS",.25,0)+IF('Table'[C]="VS",.25,0)+IF('Table'[D]="VS",.25,0)
Satisfied     = IF('Table'[A]="S",.25,0)+IF('Table'[B]="S",.25,0)+IF('Table'[C]="S",.25,0)+IF('Table'[D]="S",.25,0)
Dissatisfied  = IF('Table'[A]="DS",.25,0)+IF('Table'[B]="DS",.25,0)+IF('Table'[C]="DS",.25,0)+IF('Table'[D]="DS",.25,0)

 

 

 

pranit828_1-1597274199875.png

 

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

Regards,
Pranit

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @gauravnarchal 

 

I have abbriviated the column names and you can use it as per your need.

 

Below is the screenshot of the output and column DAX formula.

Change the new created columns to percentage as in the screen shot to see the data in %

 

 

 

Dlighted      = IF('Table'[A]="DL",.25,0)+IF('Table'[B]="DL",.25,0)+IF('Table'[C]="DL",.25,0)+IF('Table'[D]="DL",.25,0)
Very Satisfied= IF('Table'[A]="VS",.25,0)+IF('Table'[B]="VS",.25,0)+IF('Table'[C]="VS",.25,0)+IF('Table'[D]="VS",.25,0)
Satisfied     = IF('Table'[A]="S",.25,0)+IF('Table'[B]="S",.25,0)+IF('Table'[C]="S",.25,0)+IF('Table'[D]="S",.25,0)
Dissatisfied  = IF('Table'[A]="DS",.25,0)+IF('Table'[B]="DS",.25,0)+IF('Table'[C]="DS",.25,0)+IF('Table'[D]="DS",.25,0)

 

 

 

pranit828_1-1597274199875.png

 

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

Regards,
Pranit

Thank you @Anonymous

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.