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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jebilaya
Helper III
Helper III

Can't add legend where slicer measure created

I have a line chart where the line is linked to a slicer created from 2 measures.  I'm unable to add a legend to this chart but not sure why.  If I create a new chart and just do a standard measure with a legend it works fine.

 

The dax for selected measure which is the 'Pick Rate line' is as follows

 

SelectedMeasure =
if( HASONEVALUE('Measure Table'[Measure]),
switch(
    Values('Measure Table'[Measure]),
    "Pick Rate Productive", [Pick Rate Productive],
    "Pick Rate Unproductive", [Pick Rate Unproductive]
    ))
 
I want to add colleague status as the legend which is a static column in the data containing 2 values.

 

 

Jebilaya_0-1667576160247.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Jebilaya 

 

When you have more than one fields (or measures) on Y-axis, it is not supported to add a legend to the line chart. This is by design. When there is only one field or measure on Y-axis, a legend is supported. You may remove the [Target] field from the line chart and add a legend then. 

vjingzhang_0-1667804168512.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Jebilaya 

 

When you have more than one fields (or measures) on Y-axis, it is not supported to add a legend to the line chart. This is by design. When there is only one field or measure on Y-axis, a legend is supported. You may remove the [Target] field from the line chart and add a legend then. 

vjingzhang_0-1667804168512.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

That's a bit rubbish, but thanks for the answer @v-jingzhang 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors