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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.