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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Child and parent filter

My requirement is I have Main table that is below and Imported into Power BI made table visual and taken Child field as a slicer and when choose any Child filed please see My requirement

Main table

ChildParent
AAA1
BBB1
CCC1
AAA2
DDD2
FFF2
BBB3
CCC3
DDD3
FFF3
AAA4
FFF4
GGG4
SSS4

 

My requirement

If i select AAA then display like

ChildParent
AAA1
BBB1
CCC1
AAA2
DDD2
FFF2
AAA4
FFF4
GGG4
SSS4

 

 

Please help me on this

thank you in advance 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

You can achieve this by creating a separate disconnected table for the Child column.

You can download the file: HERE

 

Measure = 

var __childselected = SELECTEDVALUE('Child Table'[Child])
var __table = 
    CALCULATETABLE( 
        'Main Table',
        'Main Table'[Child] = __childselected 
    )
return
ISEMPTY(__table) * 1

Fowmy_0-1606580333670.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

6 REPLIES 6
Fowmy
Super User
Super User

@Anonymous 

You can achieve this by creating a separate disconnected table for the Child column.

You can download the file: HERE

 

Measure = 

var __childselected = SELECTEDVALUE('Child Table'[Child])
var __table = 
    CALCULATETABLE( 
        'Main Table',
        'Main Table'[Child] = __childselected 
    )
return
ISEMPTY(__table) * 1

Fowmy_0-1606580333670.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Krista
Frequent Visitor

@Fowmy -- I've run into this same issue and I think your solution will work, but I can't access the file you linked to. I've created the separate table and measure, but I'm not sure where to go from there. Which table is the measure supposed to be created in? From which table do I use the Child field for the slicer?

 

Thanks!!

Anonymous
Not applicable

Working great Thank you @Fowmy 

Anonymous
Not applicable

 

When I select CCC

 

ChildParent
AAA1
BBB1
CCC1
BBB3
CCC3
DDD3
FFF3

 

AntrikshSharma
Super User
Super User

@Anonymous I am not being rude, but you haven't even written a single full sentence, how would someone understand what you are trying to achieve? 🙂

Anonymous
Not applicable

@AntrikshSharma 

 

Sorry for that just now updated with clear note 

Thank you 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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