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
Anonymous
Not applicable

Cluster Column Chart Not calculating percent of string variable by x-axis correctly

Hello, 

 

I searched this forum, but I could not find anything that solved my issue. I have a matrix table with the count of two different categories by year. If I add my value and show as "pecent of column", it gives me the correct percentage. When I add this to a clustered column chart, it does not give me the correct percentage. Please help! 

 

Measure = DIVIDE(

COUNT(DISP_HISTORY[CD Count]),
CALCULATE(COUNT(DISP_HISTORY[CD Count]), ALLEXCEPT(DISP_HISTORY, DISP_HISTORY[Start of Week])))
 
A 2019 Should be 0%
B 2019 should be 100%
 
A 2020 should be 3%
B 2020 should be 97%
 
fdfdsfdsf.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured it out. 

 

The measure I needed was: 

 

Measure = DIVIDE(

COUNT(DISP_HISTORY[CD Count]),
CALCULATE(COUNT(DISP_HISTORY[CD Count]), AllSelected (DISP_HISTORY[CD Count)))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I figured it out. 

 

The measure I needed was: 

 

Measure = DIVIDE(

COUNT(DISP_HISTORY[CD Count]),
CALCULATE(COUNT(DISP_HISTORY[CD Count]), AllSelected (DISP_HISTORY[CD Count)))
Fowmy
Super User
Super User

@Anonymous 

Try one of the following meassures:

 

Measure = 
DIVIDE(
    COUNT(DISP_HISTORY[CD Count]),
    CALCULATE(
        COUNT(DISP_HISTORY[CD Count]), 
        ALLSELECTED(DISP_HISTORY[Start of Week])
    )
)
Measure = 
DIVIDE(
    COUNT(DISP_HISTORY[CD Count]),
    CALCULATE(
        COUNT(DISP_HISTORY[CD Count]), 
        ALLSELECTED(DISP_HISTORY[Year])
    )
)

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thank you. The first measure gives me 100% for all columns. 

 

The second measure gives me the percentage by legand (CD Count) rather than Axis (year) 

 

3.jpg

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.