Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Count of Contacts list of a particular account in power bi

(0) ShareShare
ReportReport
Posted on by 40

How can we get the count of Contacts list of a particular account in power bi of CRM D365?

*This post is locked for comments

  • NODAL Profile Picture
    860 on at
    RE: Count of Contacts list of a particular account in power bi

    Hi Rishi,

    Try following way

    A)Take two tables accounts and contacts in power query

    B)Take required column in account table and don't forget to take accountid and in contact table tale only contactid and _parentaccountid_value

    C) Use group by feature of power quiery on contact table and and select count of contact id

    D) merge table account and contact based on accountid and _parentaccountid_value

    Additionally if you data is already loaded then you can use some DAX formulaes to get count

    Regards,

    NODAL

  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at
    RE: Count of Contacts list of a particular account in power bi

    If you are on D365 On premise, you can use aggregate function Count to get the value of the record.

    In Online, using FetchXML was most preferred option, however we have a limit of retrieving max. 5000 records only.

    Check:https://crmchartguy.com/2017/09/30/use-fetchxml-in-power-bi-with-dynamics-365-customer-engagement/ 

    You can also check Power Query (M) builder available in XMLToolbox if that suits you.

    Hope this helps.

  • Rashi Malhotra Profile Picture
    40 on at
    RE: Count of Contacts list of a particular account in power bi

    Is there any other way other than fetch xml?

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at
    RE: Count of Contacts list of a particular account in power bi

    Hi,

    Connect with Dynamics crm in Power bi and create fetch xml to get contact count based on account which you can show in Power BI.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans