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.
Would like to find % from total (country based) for each company: the sample data as:
Country | Company | Sales | % from All total (countryBased) |
DK | A | 8 | ? (8/ (8+5) |
DK | B | 5 | ?(5/ (8+5) |
SE | X | 6 | ? |
SE | Y | 7 | ? |
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a measure.
Percentage by country: =
VAR _countrysales =
CALCULATE ( [Sales:], ALLEXCEPT ( Data, Data[Country] ) )
RETURN
DIVIDE ( [Sales:], _countrysales )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a measure.
Percentage by country: =
VAR _countrysales =
CALCULATE ( [Sales:], ALLEXCEPT ( Data, Data[Country] ) )
RETURN
DIVIDE ( [Sales:], _countrysales )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 |
---|---|
49 | |
26 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |