cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gokul
Helper IV
Helper IV

Clustered Bar Chart - Percent of category/legend

How to find percent in clustered bar chart by axis/legend...any idea?? i have show in matrix..i want that to be in clustered chart!!any idea???

12.png13.png

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft
Microsoft

Hi @Gokul,

 

I would suggest you use a measure instead.

Measure =
DIVIDE (
    COUNT ( Table1[id] ),
    CALCULATE ( COUNT ( Table1[id] ), ALLEXCEPT ( Table1, Table1[dept] ) ),
    99999
)

Clustered-Bar-Chart-Percent-of-categorylegend

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft
Microsoft

Hi @Gokul,

 

I would suggest you use a measure instead.

Measure =
DIVIDE (
    COUNT ( Table1[id] ),
    CALCULATE ( COUNT ( Table1[id] ), ALLEXCEPT ( Table1, Table1[dept] ) ),
    99999
)

Clustered-Bar-Chart-Percent-of-categorylegend

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Will this work if the all except argument is from another table in the model? Thanks!

what does 9999 denotes??

 

Hi @Gokul,

 

That's the alternative value in case of the failure of the calculation. You will know something is wrong when you get 99999. You can change it or ignore it like below.

 

Measure =
DIVIDE (
    COUNT ( Table1[id] ),
    CALCULATE ( COUNT ( Table1[id] ), ALLEXCEPT ( Table1, Table1[dept] ) )
)

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors