To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, I'm trying to create a DAX Measure or column to calculate a percent of subtotal by category on the left. For example, the total percent should be 100% for each category, and the % by asset class should be a percent of the subtotal, not the grand total. I've tried sumx, allselected, etc. but having trouble getting to what i need.
Solved! Go to Solution.
[% of Category Subtotal] =
DIVIDE(
[Total Holdings],
CALCULATE(
[Total Holdings],
REMOVEFILTERS('YourTable'[Asset Class])
)
)
This gives you percent of subtotal by category—each category totals to 100%, not the grand total. Clean and dynamic.
[% of Category Subtotal] =
DIVIDE(
[Total Holdings],
CALCULATE(
[Total Holdings],
REMOVEFILTERS('YourTable'[Asset Class])
)
)
This gives you percent of subtotal by category—each category totals to 100%, not the grand total. Clean and dynamic.