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! Learn more

Reply
cutestjigs
Frequent Visitor

Count total number of children in the Hierarchy

Hello!

I have accounts table, it contains id, name, parent_id, path, subscription start date, subscription end date. I'm trying to get 2 numbers.
1) No. of Valid SubMerchants = Count total number of children (next level) under the account which subscription is not expired within particular period. 
2) No. of Valid Tree Sub Merchants = Count total number of children (including children's children (all level)) under the account which subscription is not expired within particular period.

Both number should be dynamic based to the period selected in calender.

I am able to get No. of submerchants = Count total number of children (next level) under the account (but i'm not able to filter it according to calender period and subscription period).

 

image.png

 

Many Thanks,

 

Jigu Patel

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @cutestjigs,

 

Have you have another Calendar Table?

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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