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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
yforti13
Regular Visitor

help with legends

Hello everyone!

In the example below I am filtering my graph by the light blue legend, is there any way that when I click on the legend it will only display the visual that I clicked on?

yforti13_0-1750895425840.png

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @yforti13 

  • Duplicate your current visual and then disable the legend and the title from the original. 
  • Click the duplicate and go to the general in the formatting pane. Click advanced options and disable Responsive. Resize the duplicate so only the Title and the legend shows.
    danextian_0-1750906207420.png

     

  • Group the two visuals.

 

danextian_1-1750906224621.png

danextian_3-1750906271077.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

v-pnaroju-msft
Community Support
Community Support

Thankyou, @ryan_mayu@danextian, for your response.

Hi yforti13,

We appreciate your question on the Microsoft Fabric Community Forum.

As I understand, the usual behavior in Power BI when you use a legend in a visual (especially with measures) is that clicking on a legend item only highlights that part and makes the others look dim. It does not filter out or hide the other lines. Because you are using measures, you cannot use slicers or filters to change which lines are shown by clicking on the legend.

To make it work so that you can see only one line at a time, you can use this workaround with Bookmarks, Buttons, and Layered Visuals:

  1. Create separate line charts for each measure (like A, B, and C).
  2. Add three buttons that act like a legend with options "A", "B", and "C".
  3. Make bookmarks that control which chart is shown.
  4. Link the bookmarks to the buttons so that when you click a button, only the chosen line chart is visible.

This way you get full control over which line is visible and it looks like filtering by clicking on a legend option.

Please find the attached screenshots and sample pbix file to help you with this:

vpnarojumsft_0-1750938472041.png

vpnarojumsft_1-1750938513553.png

If our answer is helpful, please mark it as the accepted solution and give kudos. This will help other members with the same question.

If you have more questions, please feel free to ask the Microsoft Fabric community.

Thank you.




View solution in original post

8 REPLIES 8
v-pnaroju-msft
Community Support
Community Support

Hi yforti13,

We are following up to see if your query has been resolved. Should you have identified a solution, we kindly request you to share it with the community to assist others facing similar issues.

If our response was helpful, please mark it as the accepted solution, as this helps the broader community.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi yforti13,

We wanted to check with you because we have not received any reply. If your problem is solved, please share the solution with the community. This will help others who face the same issue.

Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.

Thank you.

 

v-pnaroju-msft
Community Support
Community Support

Hi yforti13,

We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.

If you find the response helpful, please mark it as the accepted solution, as this will help other members with similar queries.Should you have any further queries, kindly feel free to contact the Microsoft Fabric community

Thank you.

v-pnaroju-msft
Community Support
Community Support

Thankyou, @ryan_mayu@danextian, for your response.

Hi yforti13,

We appreciate your question on the Microsoft Fabric Community Forum.

As I understand, the usual behavior in Power BI when you use a legend in a visual (especially with measures) is that clicking on a legend item only highlights that part and makes the others look dim. It does not filter out or hide the other lines. Because you are using measures, you cannot use slicers or filters to change which lines are shown by clicking on the legend.

To make it work so that you can see only one line at a time, you can use this workaround with Bookmarks, Buttons, and Layered Visuals:

  1. Create separate line charts for each measure (like A, B, and C).
  2. Add three buttons that act like a legend with options "A", "B", and "C".
  3. Make bookmarks that control which chart is shown.
  4. Link the bookmarks to the buttons so that when you click a button, only the chosen line chart is visible.

This way you get full control over which line is visible and it looks like filtering by clicking on a legend option.

Please find the attached screenshots and sample pbix file to help you with this:

vpnarojumsft_0-1750938472041.png

vpnarojumsft_1-1750938513553.png

If our answer is helpful, please mark it as the accepted solution and give kudos. This will help other members with the same question.

If you have more questions, please feel free to ask the Microsoft Fabric community.

Thank you.




danextian
Super User
Super User

Hi @yforti13 

  • Duplicate your current visual and then disable the legend and the title from the original. 
  • Click the duplicate and go to the general in the formatting pane. Click advanced options and disable Responsive. Resize the duplicate so only the Title and the legend shows.
    danextian_0-1750906207420.png

     

  • Group the two visuals.

 

danextian_1-1750906224621.png

danextian_3-1750906271077.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
ryan_mayu
Super User
Super User

@yforti13 

you can add a legend filter, use that filter to display the line that you need.

11.png12.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




but visual fields are measurements.
You can't use measurements as filters

I don't know how to use a filter to do that. However, I think you can use page navigator to achieve the similar output

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.