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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.