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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PowerBITesting
Helper IV
Helper IV

How to Filter the child records based on the parent records in query editor?

I have account and contact with 1:N relation. I have added filter in Account as if account is Active. But I need to filter/load the contact if the account is associtiated is active/loaded  or  not? 

 

is this possible to filter in query editor or do we need to filter by using report level filter?

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @PowerBITesting ,

 

Is your table like this?

v-lionel-msft_0-1606902389738.png

 

Try to do add filters in 'Edit query'.

v-lionel-msft_1-1606902449683.png

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @PowerBITesting ,

 

Is your table like this?

v-lionel-msft_0-1606902389738.png

 

Try to do add filters in 'Edit query'.

v-lionel-msft_1-1606902449683.png

 

Best regards,
Lionel Chen

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

@PowerBITesting , I think it needs to done at report level 

but refer

https://www.thebiccountant.com/2019/10/03/parent-child-hierarchies-with-multiple-parents-in-power-bi...

https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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