Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi everyone,
I'm new to DAX and writing measures. Below, I want the light blue and dark blue columns to show what percentage of their time cluster they account for. So for example, for 2019, the light blue to show %=137/(137+88.7). This measure needs to adjust as the user drills down to more granular time periods as well-- like quarters, months, and weeks. Essentially, i want each column to have a percent that divides its value by the sum of its cluster.
Here is the DAX measure I have now... not sure if i'm on the right track. Any help is appreciated!!
Solved! Go to Solution.
try this measure
Hosp/PP % =
DIVIDE(
SUM('BSF Files'[12. Sum of Extended Price]),
CALCULATE(
SUM('BSF Files'[12. Sum of Extended Price]),
ALLSELECTED('BSF Files'[08. Hosp/PP])
),
0
)
It worked! Thank you so much!
Glad to hear. Can you please accept it as the solution? 😀
try this measure
Hosp/PP % =
DIVIDE(
SUM('BSF Files'[12. Sum of Extended Price]),
CALCULATE(
SUM('BSF Files'[12. Sum of Extended Price]),
ALLSELECTED('BSF Files'[08. Hosp/PP])
),
0
)