web
You’re offline. This is a read only version of the page.
close
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!

I have the same question (0)
  • Suggested answer
    Mohamed GRAIB Profile Picture
    2,504 Moderator on at

    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. 

  • Suggested answer
    Eiken Profile Picture
    on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 58 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 42

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans