The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 )
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 )
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |