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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MattGo
New Member

Grouping and counting a secondary related table

I'm using a dataset from Dynamics365 which has 3 entities: service, attendance and contact. The attendance entity acts as a link between the Service and the Contact.

 

I want to display a breakdown, filtered by service, of the counts of specific fields in contact. For example, for Service A I want to see a count of how many contacts of each age are related. I'm trying to wrap my head around a query to do this and I'm just getting myself confused.

 

My understanding is I need to:

 

Get attendances from the desired service (slicer?)

Get contacts from those attendances

Group and count the age field on those contacts

 

Is there a way to do this in PowerBI? Thanks

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @MattGo ,

 

Roughly looking at your description, this can be achieved in power bi, but without your sample data and the desired output, it is difficult for us to help you.

 

Would you please inform us more detailed information( your sample data(by OneDrive for Business)) if possible? Then we will help you more correctly.

 

Please don't contain any Confidential Information or Real data in your reply or files.

 

Best Regards,

Dedmon Dai

parry2k
Super User
Super User

@MattGo can you share the sample data or pbix file and expected result.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors