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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Omar_Sek
Frequent Visitor

Display a clusterd column chart based on filtered value

capture 01.JPG

 the first picture is my dataset, in this dataset, I have a parent, child, and value. 

I want to put a slicer that contains child values, and when I select a child I show all his brothers with values associated in a clustered column.

for example: if I filter child 01 I want to display in my clustered chart all his brother (child 01,child02,child03) with values.

capture 02.JPG

capture 03.JPG

my solution :

1* I created a measure "parent selected child" and I tried use filter function of clustered column chart to put parent is this measure but it doesn't function.   
2* I created two filters, the first filter I put the child, and the second I put the parent, and I disallowed the interaction between the first filter and the graph but in the graph, it displays just one bar which is the parent with the value of the sum. 
Thankx

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Omar_Sek ,

 

Try this:

Measure =
VAR SelectedChild =
    SELECTEDVALUE ( 'Child Table'[child] )
VAR SelectedParent =
    CALCULATE ( MAX ( 'Table'[parent] ), 'Table'[child] = SelectedChild )
RETURN
    IF ( MAX ( 'Table'[parent] ) = SelectedParent, 1 )

child.gif

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Omar_Sek ,

 

Try this:

Measure =
VAR SelectedChild =
    SELECTEDVALUE ( 'Child Table'[child] )
VAR SelectedParent =
    CALCULATE ( MAX ( 'Table'[parent] ), 'Table'[child] = SelectedChild )
RETURN
    IF ( MAX ( 'Table'[parent] ) = SelectedParent, 1 )

child.gif

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Omar_Sek , Not very clear, But use the expand icon on the top of bar visual 4th from left and check. and check if that can help

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I am using this bar visual, but i want to display just the brother of the selected value.

As I explained if I filter child 01 , in my visual I want to see the brother ( child who has the same parent )of child 01 ( child 01,child02, child03)

I can rexplain my problem by : 

How to List All child Listed Under a parent by Filtering a child .

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.