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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Not applicable

Count the frequency of multiple IDs within a date period.

I have some phone data and would like to find out how frequently a customer calls multiple times within 5 days.


Short background, we have noticed some customers are calling again very shortly after their original call, and now I need to find out of common this is. 


So if a customer calls 3 times in October and then calls 2 times again in November I would like the total count to be 5. 

Customer IDDate




Is this even possible? The data is in an SQL server. I'm not an expert in Power Bi or SQL but is it perhaps easier to make this calculation with an SQL query? 

Community Support
Community Support

Hi @Anonymous ,


Both Mahoneypat and AllisonKennedy offer great advice, sample data without sensitive information and expected output would help tremendously.
Please see this post regarding: 

How to get your question answered quickly 

How to provide sample data in the Power BI Forum 


Hope it helps,

Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

@Anonymous  Not sure yet what you want? Please describe further. The 5 is easy - just COUNTROWS(factTable) and put in a visual by Customer. Set a Date Range in filter or slicer visual. Then you can add DISTINCTCOUNT(CustomerID) to the same visual as the COUNTROWS(factTable) and you can get a tally of customers. Finally filter the visual for COUNTROWS(factTable) > 5 (or whatever value you wish).


However, if you want that rolling within 5 days, etc please further define your requirements, and if possible provide sample data and draw expected outcome in Excel sheet or pen and paper so we know what final numbers you expect.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.


You should be able to use a measure that simply uses DISTINCTCOUNT( ) of your Date column to get the # of days each customer called.  Or just do a COUNT of the CustomerID column to get the total # of calls.  When you make visuals that include month, etc. you will get the # of calls in that time period.



Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.

@mahoneypa HoosierBI on YouTube

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.