March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
i am trying to calculate number of clients who have gone a certain number of days without a service. Below is the table i am working with.
Client | Service Date | Exit Date |
1 | 1/01/2023 | 1/02/2023 |
1 | 6/01/2023 | 1/02/2023 |
2 | 1/02/2023 | 1/03/2023 |
3 | 1/03/2023 | 1/05/2023 |
3 | 6/04/2023 | 1/05/2023 |
4 | 1/04/2023 | 1/05/2023 |
5 | 1/05/2023 | 1/06/2023 |
5 | 1/06/2023 | 1/06/2023 |
6 | 1/06/2023 | 1/07/2023 |
7 | 1/07/2023 | |
7 | 1/08/2023 | |
8 | 1/08/2023 |
My current dax is calculating the datediff between the service date and and todays date, and the exit date and todays date, and if the service period is over 120 days, it counts the client, and if the client had left outside of 120 days since last service, they will be counted.
My issue is i am using the service date on the page to identify active clients during a period of time, which means when the Datediff is calculating the start date, its counting from the last service of the service date and todays date. Meaning if the service date filter page is set to looking at clients with an activity from 1/1/23 - 1/4/23, instead of client one only having 90 days (As set as the service date filter), its counted as having 240 days, so its been counted as overdue, even though during the selected period of time, they would of still been in date.
How can i have the "date2" in datediff linked to the page filtered date, instead of having it as TODAYS()?
Thank you for your suppport.
what is an "activity"? them having a service event?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |