Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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! | |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 69 | |
| 32 | |
| 32 | |
| 32 |