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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ibodnar
New Member

Calculating aggregates in table

Hi everyone, 

 

I'd like to create a new column that shows the total sales of each country in the corresponding row (see the last column in the table). Can you help me which function(s) should I use? 

 

CountrySalesSales Over Country
US1065
US2565
US3065
Germany2035
Germany1535
2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@ibodnar wrote:

Hi everyone, 

 

I'd like to create a new column that shows the total sales of each country in the corresponding row (see the last column in the table). Can you help me which function(s) should I use? 

 

Country Sales Sales Over Country
US 10 65
US 25 65
US 30 65
Germany 20 35
Germany 15 35

You can try

Sales Over Country =
CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Table', 'Table'[Country] ) )
spuder
Resolver IV
Resolver IV

Maybe you mean it like that way?

 

 

 

example.jpg

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.