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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.