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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
LynnW
Regular Visitor

How to filter table data by clicking on the bar in Clustered Column chart

I have this table:

ItemCategoryStatus
Item 1Category 1In backlog
Item 2Category 1In backlog
Item 3Category 1In backlog
Item 4Category 1In backlog
Item 5Category 1In analysis
Item 6Category 1In analysis
Item 7Category 1In analysis
Item 8Category 1In analysis
Item 9Category 1In analysis
Item 10Category 1In analysis
Item 11Category 1In dev
Item 12Category 1In dev
Item 13Category 1In dev
Item 14Category 1In dev
Item 15Category 1In dev
Item 16Category 1In dev
Item 17Category 1In dev
Item 18Category 1In dev
Item 19Category 1In qa
Item 20Category 1In qa
Item 21Category 1In qa
Item 22Category 1In qa
Item 23Category 1In qa
Item 24Category 1In qa
Item 25Category 1In qa
Item 26Category 1In qa
Item 27Category 1In qa
Item 28Category 1Done
Item 29Category 1Done
Item 30Category 1Done
Item 31Category 2In backlog
Item 32Category 2In backlog
Item 33Category 2In backlog
Item 34Category 2In backlog
Item 35Category 2In backlog
Item 36Category 2In backlog
Item 37Category 2In backlog
Item 38Category 2In backlog
Item 39Category 2In analysis
Item 40Category 2In analysis
Item 41Category 2In analysis
Item 42Category 2In analysis
Item 43Category 2In analysis
Item 44Category 2In analysis
Item 45Category 2In analysis
Item 46Category 2In dev
Item 47Category 2In dev
Item 48Category 2In dev
Item 49Category 2In dev
Item 50Category 2In dev
Item 51Category 2In dev
Item 52Category 2In qa
Item 53Category 2In qa
Item 54Category 2In qa
Item 55Category 2In qa
Item 56Category 2Done
Item 57Category 2Done
Item 58Category 2Done
Item 59Category 2Done
Item 60Category 2Done

And also created new measures calcuate by status: 

New measureCount by Status
To doIn backlog
PeningIn analysis
In ProgressIn dev & In qa
CompletedDone

And built this dashboard:

LynnW_1-1758649583524.png

I'm able to click on the categery, so the table data is filtered only keep the items for category.

LynnW_2-1758649667135.png

What I want to do is when click on each of the status bar in each category,  data in table should be filtered out. 

For example if I click on 'In progress' bar in 'Category 1', the table should show all the items that are in category and have status either 'In dev' or 'In qa'. 

Do any one know how to solove this issue?

https://drive.google.com/file/d/1JXhsQZYafcqcVrJupW3UQIXBVOznWWpA/view?usp=drivesdk

2 REPLIES 2
MasonMA
Resident Rockstar
Resident Rockstar

Hi, 

 

Power BI does not automatically filter visuals based on measures unless those measures are tied to actual column values. Your chart uses custom measures, so clicking a bar like "In Progress" doesn’t pass a filter contexts to the table.

There is another way with creating a column in table. 

Group = 
SWITCH(
    TRUE(),
    Sheet2[Status] IN {"In dev", "In qa"}, "In Progress",
    Sheet2[Status] = "In backlog", "To Do",
    Sheet2[Status] = "In analysis", "Pending",
    Sheet2[Status] = "Done", "Completed"
)

MasonMA_0-1758657779242.png

Then use this new column on Legend and count of this column on Y-axis. 

MasonMA_1-1758657814449.png

 

rajendraongole1
Super User
Super User

Hi @LynnW  - create a calculated column that maps each Status to your new bucket. When you click on In Progress, Power BI will filter the table correctly (to In dev and In qa), because the filter context flows from the column. 

 

eg: Status Bucket =
SWITCH(
TRUE(),
'Table'[Status] = "In backlog", "To Do",
'Table'[Status] = "In analysis", "Pending",
'Table'[Status] IN { "In dev", "In qa" }, "In Progress",
'Table'[Status] = "Done", "Completed",
BLANK()
)

 

Hope this works, please try.





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

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors