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
lennox25
Post Patron
Post Patron

How to get a total of rows in a table without SUM

Hi,

I have a table much like the one below in my Power BI Visual. I need to total but not using SUM as this provides incorrect figures. The amount sold is not SUM, I have selected 'Dont Summarize'. How to I get a total row like the one I have manuall added to this table?

SIRAccountingPeriodWeek NoStore NOProductAmount Sold
20230111007Apples4215
20230111007Apples13854
20230111007Oranges19631
20230111007Pears20478
20230111007Oranges29447
   TOTAL87625
1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @lennox25 

 

I don't know why not to use SUM. It works perfectly:

 

Sum Amount Sold = SUM(MyTable[Amount Sold])

 

mlsx4_0-1690534140046.png

If you want to keep the values not summarized, you can do this (but it is to reverse everything):

Medida = SUMX(VALUES(MyTable[Product]),CALCULATE([Sum Amount Sold]))

 

mlsx4_0-1690534457355.png

 

View solution in original post

6 REPLIES 6
mlsx4
Memorable Member
Memorable Member

Hi @lennox25 

 

I don't know why not to use SUM. It works perfectly:

 

Sum Amount Sold = SUM(MyTable[Amount Sold])

 

mlsx4_0-1690534140046.png

If you want to keep the values not summarized, you can do this (but it is to reverse everything):

Medida = SUMX(VALUES(MyTable[Product]),CALCULATE([Sum Amount Sold]))

 

mlsx4_0-1690534457355.png

 

I need to do it on the store number product is irrelevant. When I try this happens.

lennox25_0-1690535117541.png

 

Then, replace the values field:

Medida = SUMX(VALUES(MyTable[Store NO]),CALCULATE([Sum Amount Sold]))

 

I have produced a sample file to show you. PLease take a look and help if you can 🙂

 

https://drive.google.com/file/d/1gXR-zoc9qxcPSVDbNyJqqE2Ufe-ZQ4iV/view?usp=sharing

 

Hi, you have a date filter in the filter pane. Is it necessary?

No its not necessary

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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