Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have a data set that looks like this
and i need to calculate a column or measure that displays the sales per country , like this
for those familiar with Tableau that would be calculated using {Fixed [Country] : sum([Sales] }
Thank you very much
Nouha
Solved! Go to Solution.
Just create a measure like this:
Total Sales = SUM(Table[Sales])
Create a table visualization that has [Country] and [Total Sales] in it.
If you want this to be "durable" or "fixed" then you could create another measure like this:
Country Sales = CALCULATE([Total Sales],ALLEXCEPT(Table,[Country]))
This second measure will exclude all other context filters except [Country].
Just create a measure like this:
Total Sales = SUM(Table[Sales])
Create a table visualization that has [Country] and [Total Sales] in it.
If you want this to be "durable" or "fixed" then you could create another measure like this:
Country Sales = CALCULATE([Total Sales],ALLEXCEPT(Table,[Country]))
This second measure will exclude all other context filters except [Country].
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 45 | |
| 38 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 87 | |
| 68 | |
| 38 | |
| 29 | |
| 26 |