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

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.

Reply
Anonymous
Not applicable

Adding Total Line in the same Line Chart that is broken down by different Attributes

Hi there,

Just want to understand if there is a way to show a total % line in the same line chart that break downs the data with different attributes. Just created a dummy data table to explain further. thanks in advance

 

Person Data.PNG

 

Table Name: Person Data

Metric required: Female participation rate in each attiribute i.e. counrty, emp type etc. pls see follwoing example

Measure:  Female Participation =DIVIDE(CALCULATE(DISTINCTCOUNT('Person Data'[Person ID]),'Person Data'[Gender]="Female"),DISTINCTCOUNT('Person Data'[Person ID]))

with this measure I can show total line or break it down by some categories but can't show all in one line chart.

Capture.PNG

 

To include Total line in same chart I need to create seperate measures:

 

Female %: DIVIDE(CALCULATE(DISTINCTCOUNT('Person Data'[Person ID]),'Person Data'[Gender]="Female"),DISTINCTCOUNT('Person Data'[Person ID]))

Female % Aus: CALCULATE([Female Participation],'Person Data'[Country]="Aus")
Female % NZ:  CALCULATE([Female Participation],'Person Data'[Country]="NZ")
Capture.PNG
 
4 REPLIES 4
daxer-almighty
Solution Sage
Solution Sage

You can use Calculation Groups to create versions of all measures that will be insensitive to any set of attributes you want. This would be the simplest and most elegant solution out there.

Anonymous
Not applicable

@daxer-almighty thank you for the response I will read the article and try to apply it to my model.

Here's something more about Calculation Groups and it's live: https://www.youtube.com/watch?v=a4zYT-N-zsU

 

Anonymous
Not applicable

@daxer-almighty thanks again really appreacite your help around that.

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.