Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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].
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |