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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Combo chart, how keep single line series unaffected by Legend(Series)

Hi, 

 

I'm new with PowerPivot (Power BI), I'm tryingo to build a very simple combo chart  as "A" but having the clustered columns broken down as "B" (by Status), the issue I'm having is that the orange line "AdoptionPct"  in chart "B" once I add the Status series  goes to 100% in all clustered columns and I'd like to keep it as in chart "A".

 

ComboChar.png

 

My dataset and measures 

 

Status                           Company  Total

AdoptedAVE521
AdoptedCORE280
AdoptedFV2253
AdoptedPTP161
Not AdoptedAVE 
Not AdoptedCORE 
Not AdoptedFV1
Not AdoptedPTP 
To be AdoptedAVE77
To be AdoptedCORE9
To be AdoptedFV93
To be AdoptedPTP10

 

GrandTotal:=CALCULATE(SUM(Table1[Total]))

Total_Adopted:=CALCULATE(SUM(Table1[Total]),FILTER(Table1,Table1[Status]="Adopted"))

Total_Not_Adopted:=CALCULATE(SUM(Table1[Total]),FILTER(Table1,Table1[Status]="Not Adopted"))

Total_ToBeAdopted:=CALCULATE(SUM(Table1[Total]),FILTER(Table1,Table1[Status]="To be Adopted"))

AdoptionPct:=DIVIDE([Total_Adopted],[GrandTotal],0)

 

Hopefully I was clear enough explaining the issue.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

In order to achieve the effect you want, you need to change the measure AdoptionPct to the following formula:

AdoptionPct :=
DIVIDE (
    [Total_Adopted],
    CALCULATE ( SUM ( Table1[Total] )ALLSELECTED ( Table1[Status] ) ),
    0
)

The following are the results before and after the change:

Before change:

4.PNG

After change:

3.PNG

Here is a demo, please try it:

https://qiuyunus-my.sharepoint.com/:x:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EUgT6XRhQZRIn5qI1Px2E4EBXKi4Nwwm-oF4Jgcso3J3rA?e=PRodwX

 

Best Regards,

Community Support Team _ Joey
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

2 REPLIES 2
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

In order to achieve the effect you want, you need to change the measure AdoptionPct to the following formula:

AdoptionPct :=
DIVIDE (
    [Total_Adopted],
    CALCULATE ( SUM ( Table1[Total] )ALLSELECTED ( Table1[Status] ) ),
    0
)

The following are the results before and after the change:

Before change:

4.PNG

After change:

3.PNG

Here is a demo, please try it:

https://qiuyunus-my.sharepoint.com/:x:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EUgT6XRhQZRIn5qI1Px2E4EBXKi4Nwwm-oF4Jgcso3J3rA?e=PRodwX

 

Best Regards,

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

Anonymous
Not applicable

Thanks a lot @Anonymous-msf,

 

It worked as a charm,  I appreciate your help!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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