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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Learner86
Helper I
Helper I

Calculate sum over multiple rows

Dear Community,

 

I need your help again.

 

Imagine I have the following table

 

IDColumn 1Column 2Column 3
51003010
6501580
7706090
Sum220105180

 

And I need a new table like this:

 

IDColumn 1Column 2Column 3Sum rows
51003010140
6501580145
7706090220
Sum220105180505

 

I used DAX to calculate the values in the columns 1 to 3. For examle: Column 1= CALCULATE(SUM(Table[Column X]), FILTER(Table, Table [Column Y ]=100 &&Table [Column Z]= "A")). I got the row "Sum" automatically, when I used the visual "Table".

 

I want to add the values in column 1 to column 3. How can I generate the column "Sum rows"?

 

Thank you very much!

4 REPLIES 4
PaulOlding
Solution Sage
Solution Sage

You could add a new measure that adds Column1, Column2 and Column 3

Sum Rows = [Column 1] + [Column 2] + [Column 3]

 

The matrix visual has row totals when you use field(s) in the Columns field well.

@PaulOlding: I used this formula before but it doesn't work. The matrix visual doesn't help me because I can't use the field "column".

In what way does it not work?  Error message?  wrong result?

My assumption was you have 3 measures called 'Column 1', 'Column 2' & 'Column 3'

I could solve the problem.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.