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! Learn more

Reply
jmkeuning
Frequent Visitor

Can I filter a bar chart by clicking a value on the Y axis? I want it to filter itself.

I have a bar chart where many bars are dwarfed by the larger bars. I have a slicer that I can use to filter the bar chart to a particular record, but I want the user to be able to just click the bar chart to slice itself. Then clicking the same value will remove the filter.

 

I effectively need to zoom in so the user can select a colored bar that will filter a table.

 

Clipboard Image (12).jpg

10 REPLIES 10
foodd
Super User
Super User

Please add your work-in-progress Power BI Desktop file, and source data in Excel format.

rubayatyasmin
Super User
Super User

use drill through. 

 

Set up drillthrough in Power BI reports - Power BI | Microsoft Learn

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


From that page: "...create a destination target page... right-click a data point in other source report pages, they drill through to the target page...."

 

All of this is happening on one page for me. I want to filter the chart itself, not an object on another page.

However, Power BI does not natively support filtering a bar chart by clicking a value on the Y axis. Here's an alternative approach using a slicer:

  1. Create a slicer visual and set its data field to the same field that you're using for the Y axis of your bar chart. This will create a list of all unique values from that field.

  2. Under the Format pane of the slicer, you can adjust its settings to display as a slider or dropdown instead of a list. This will allow users to easily select a value, and all visuals tied to that field will automatically update to reflect the selected filter value.

While this approach doesn't allow for direct interaction with the Y axis, it provides an intuitive way for users to filter the data in your bar chart by selecting values from the same data field.

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Is it possible to create a copy of this bar chart, which by default is filtered to show no values, and when a user clicks a value in the main bar chart, the secondary shows the selected bar only?

foodd
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).


https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...


Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

hi foodd. here is the pbix:

 

https://file.io/yzksjGBYYbbL

 

 

i forgot to add the data

 

Table 1

IDResourceVisitsVisitDate
1This31-Apr
2That41-Apr
3Another thing51-Apr
4This31-Apr
5That61-Apr
6Another thing41-Apr
7This52-Apr
8That32-Apr
9Another thing42-Apr
10This12-Apr
11That32-Apr
12Another thing43-Apr
13This23-Apr
14That33-Apr
15Another thing13-Apr
16This33-Apr
17That43-Apr
18Another thing53-Apr
19This33-Apr
20That45-Apr
21Another thing45-Apr
22This45-Apr
23That55-Apr
24Another thing35-Apr
25This45-Apr
26That55-Apr
27Another thing35-Apr
28This45-Apr
29That55-Apr
30Another thing35-Apr
31This35-Apr

 

Query 1

ResourceSumOfVisitsVisitDate
Another thing91-Apr
Another thing42-Apr
Another thing103-Apr
Another thing135-Apr
That101-Apr
That62-Apr
That73-Apr
That195-Apr
This61-Apr
This62-Apr
This83-Apr
This155-Apr

Thaks Foodd, I hope this helps:

 

image.pngimage.pngClipboard Image (13).jpgClipboard Image (14).jpg

Hello, i've been trying to do this for a week, did you find a solution on how to filter a graph by itself ?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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