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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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