Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
Hi @yforti13
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:
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:
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.
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.
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.
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.
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:
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:
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.
Hi @yforti13
you can add a legend filter, use that filter to display the line that you need.
Proud to be a Super User!
but visual fields are measurements.
You can't use measurements as filters
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |