Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Count of records over rolling time period

(0) ShareShare
ReportReport
Posted on by 10

I would like to be able to see how many phone calls we've had with an account in the last 12 months (not YTD) on a rolling basis. I've tried to do this with a rollup and calculated field, but neither let me filter on a rolling basis. Any idea how to do this?

Thanks!

  • Suggested answer
    Eiken Profile Picture
    on at
    RE: Count of records over rolling time period

    Hi,

    You can use the Power Automate to get the count of Phone call.

    My steps are as follow.

    1.Start by creating a cloud flow, when a row is added in Phone Calls, get the account by row id.

     pastedimage1673253264386v1.png

    2.List all phone calls which is related to the account. The content in  Filter rows can be get in Fetchxml Builder in XrmToolBox.

     pastedimage1673253284137v2.png

     

    First create the Fetchxml which meet the conditions(Last 12 months and relate to the specific account)

    pastedimage1673253300630v3.png

    And then click Convert>Power Automate Parameters>Filter query. Copy it to the Filter rows.(Don't forget to change the "0000,000,000" to the account in List Rows )

     pastedimage1673253316412v4.png

    3.Last use Compose to get the count of rows and set the input to the account.

     pastedimage1673253421323v5.png

    pastedimage1673253492454v7.png

    Now I set the count to the description, you can create a new field to receive the value.

    pastedimage1673253441221v6.png

  • Suggested answer
    Mohamed GRAIB Profile Picture
    2,494 Super User 2025 Season 1 on at
    RE: Count of records over rolling time period

    Hi Blin,

    I suggest this solution :

    Create a view that List all phine calls the Last 12 months

    You can use this criteria

    pastedimage1673183883227v1.png

    Created On (Last 12 months) 

    If you have created your view, you can use the XRM TOOLBOX to count the number of your records. 

    You need to use the Fetch XML / View Record Counter 

    pastedimage1673184013026v2.png

    Step 1 : Click on Load entities 

    Step 2 : Select your view (The view that you have created (Phone calls created the Last 12 months) 

    Step 3 : click on Execute Counts. 

    pastedimage1673184101127v3.png

    Please mark the answer as verified if that's helpful for you. 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,207 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans