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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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.

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors