Forum Discussion
Julia_Mav
2 years agoHelper II
100% = Country
Hi, could someone help me find the way to calculate the percentage of sales for each product category, where 100% represents different countries? Thanks!
- 2 years ago
Something like this might work for you.
% OF Country Sales = var _countrySales = CALCULATE( SUM('Table'[Value]), ALLEXCEPT('Table', 'Table'[Country]) ) Return DIVIDE( SUM('Table'[Value]), _countrySales, 0 )You can replace the 'Table' with your table name and the SUM('Table'[Value]) with the table/column from your table.
jgeddes
2 years agoSuper User
Something like this might work for you.
% OF Country Sales =
var _countrySales =
CALCULATE(
SUM('Table'[Value]),
ALLEXCEPT('Table', 'Table'[Country])
)
Return
DIVIDE(
SUM('Table'[Value]),
_countrySales,
0
)
You can replace the 'Table' with your table name and the SUM('Table'[Value]) with the table/column from your table.