Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi, could someone help me find the way to calculate the percentage of sales for each product category, where 100% represents different countries?
Thanks!
Solved! Go to Solution.
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.
Proud to be a Super 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.
Proud to be a Super User! | |
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
82 | |
64 | |
63 | |
56 |
User | Count |
---|---|
171 | |
113 | |
110 | |
73 | |
73 |