Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dbarseg1
Frequent Visitor

Percentage and value data label for clustered column chart

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. 

dbarseg1_0-1720474917033.png

Here is the DAX measure I have now... not sure if i'm on the right track. Any help is appreciated!!

Hosp/PP % =
DIVIDE(
    CALCULATE(
        SUM('BSF Files'[12. Sum of Extended Price]),
        ALLSELECTED('BSF Files'[08. Hosp/PP]),
        VALUES('BSF Files'[05. G/L Date])
    ),
    CALCULATE(
        SUM('BSF Files'[12. Sum of Extended Price]),
        ALLSELECTED('BSF Files'[05. G/L Date])
    ),
    0
)
1 ACCEPTED SOLUTION
aduguid
Super User
Super User

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
)

View solution in original post

3 REPLIES 3
dbarseg1
Frequent Visitor

It worked! Thank you so much!

Glad to hear. Can you please accept it as the solution? 😀

aduguid
Super User
Super User

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
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors