Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 |
@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] ) )
Maybe you mean it like that way?
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 46 | |
| 34 | |
| 27 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 59 | |
| 58 | |
| 39 | |
| 22 | |
| 20 |