Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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

 

 

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.

 

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")
 

4 Replies