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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

% by category by year in scatter chart

Hello,

 

I have one chart as below:

 

It shows for each group, what is the % in total, and what is the % of female within that group. For example, for the biggest group (biggest dot), it accounted for 74% of the total population and 50% of this group is Female. 

 

I would like to see the trend for each group by year but after I put year as legend, the calculation of that '74%' becomes the % of total population but I would like this to be the % just for that year. 

 

 

scatter.png

 

The logic for those two measures are:

 

 

%GT Female = DIVIDE( sum([female]),CALCULATE(COUNT([id]),ALLSELECTED(table[group])))

 

%GT Payroll = DIVIDE( sum[id],CALCULATE(sum[id],ALLSELECTED(table)))

 

Thank you!

 

 

2 REPLIES 2
dedelman_clng
Community Champion
Community Champion

can you post some sample data?

Anonymous
Not applicable

up up thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.