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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Pikachu-Power
Impactful Individual
Impactful Individual

Total in every row

hi,

 

i have a simple formula where i want the total in every row but it dont work:

 

XYZ = CALCULATE(SUM(Table[Number]), ALL(Table[ABC_Categorie]))
 
ABC_Categorie is a created COLUMN with Categories A, B, C as variable.
 
I use a table with the columns ABC_Categories and so on...
 
🤔
 
 
4 REPLIES 4
Anonymous
Not applicable

Hi @Pikachu-Power ,

 

Do you want totals for row or for columns? Can you share some sample data and expected result to us?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Pikachu-Power , Try like

 

Grand total

XYZ = CALCULATE(SUM(Table[Number]), ALL(Table))
XYZ = CALCULATE(SUM(Table[Number]), ALLSELECTED(Table))

 

or sub total
XYZ = CALCULATE(SUM(Table[Number]), ALLexpect(Table,Table[ABC_Categorie]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Ok I didnt use ALL(Table) because I have a time filter at the filter pane where I want to use further. But I include it in the formula.  

@Pikachu-Power , The best way to ignore only the category is to have that in a separate table joining to the fact. So you can use all on that table and another filter can work.

 

you can try this and check,

XYZ = CALCULATE(SUM(Table[Number]), removefilters(Table[ABC_Categorie]))

 

new Table wat

XYZ = CALCULATE(SUM(Table[Number]), all(Categorie[ABC_Categorie]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.