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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
zubair242
Frequent Visitor

filter child/parent records based on the filter

Hi everyone,

I have a scenario where I want to filter out child/parent record based on the filter applied. Currently, if I created a relationship with child, it filters out only records where it appears as a child. However, I want to filter out those as well records in the table visual where it appears as a parent like below. Any suggestions?

 

zubair242_0-1697435228282.png

 

1 ACCEPTED SOLUTION
zubair242
Frequent Visitor

Hi @Sri_Murugan 

 

Thank you for providing the solution. However, it is a manual solution, so it would not work for my case.

 

Hi @Idrissshatila ,

 

Thanks for your suggestion. I was able to solve the problem following the below article.

 

Creating a slicer that filters multiple columns in Power BI - SQLBI

 

Thanks all.

View solution in original post

5 REPLIES 5
zubair242
Frequent Visitor

Hi @Sri_Murugan 

 

Thank you for providing the solution. However, it is a manual solution, so it would not work for my case.

 

Hi @Idrissshatila ,

 

Thanks for your suggestion. I was able to solve the problem following the below article.

 

Creating a slicer that filters multiple columns in Power BI - SQLBI

 

Thanks all.

Sri_Murugan
New Member

Sri_Murugan_0-1697443683236.png

 

1=> Raw data

2=>Result

3=>Filter applied

 

I have created a calculated column and used in slicer. Hope this approach may helps you..

 

zubair242
Frequent Visitor

Hi @Idrissshatila ,

 

Thanks for your swift response. However, the problem in this solution is that if a person searches client, he/she will have to select all the parents of client manually in the slicer to see those records. Ideally, if he/she selects only 1 record, it should filter where ever it appears in both of the columns. I am not sure how this can be achieved.

Hello @zubair242 ,

 

you could add another slicer for child only that will make it easy to select all clients.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @zubair242 ,

 

so what you do is that you put both parent and child fields in one slicer above each others, so it will show each parent what you have as a child under it and then you can click for the child of each parent.

 

Idrissshatila_1-1697436459406.png

 

 

Idrissshatila_0-1697436442460.png

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.