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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cammar
Frequent Visitor

DAX for adding over 5 columns

Hi all,

 

I have these columns in powerBI and need all 5 adding by row 

cammar_0-1668499969077.png

I have tried a SUM('Sheet'[column1]) +SUM('Sheet'[column2]) ..... but to no avail - any help hugely appreciated.

 

thanks 

1 ACCEPTED SOLUTION

@cammar See the file there are 2 examples, as a calculated column and as a measure.
Please respond if this is your desired outcome


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

5 REPLIES 5
Mahesh_Gandham
Regular Visitor

Use Iterator Function like SUMX(TableName, Column1+Column2+Column3+Column4+Column5)

you will get your answer 

DimaMD
Solution Sage
Solution Sage

Hi @cammar As a result should this be a calculated column or measure?


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
cammar
Frequent Visitor

Column so each row has a total

thanks @DimaMD 

@cammar See the file there are 2 examples, as a calculated column and as a measure.
Please respond if this is your desired outcome


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
cammar
Frequent Visitor

Brilliant, thanks 👍

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors