The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want the result like below in Time difference in Days with Dax.
Contactid | Stages | Timestamp | Time diff in Days |
1 | Active | 03-12-2023 | |
1 | Qualified | 03-12-2023 | 0 |
1 | Options Shared | 03-12-2023 | |
1 | Active | 04-12-2023 | |
1 | Qualified | 05-12-2023 | 1 |
1 | Options Shared | 05-12-2023 | |
1 | Lost Lead | 08-12-2023 | |
1 | User Reactivated | 31-01-2024 | |
1 | Options Shared | 31-01-2024 | |
1 | Lost Lead | 07-02-2024 |
Solved! Go to Solution.
Hi @karun123 ,
Regarding your question, you can use the 'DATEDIFF' function.
DATEDIFF function (DAX) - DAX | Microsoft Learn
The Table data is shown below:
Suppose we want to calculate the date difference to today.
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @karun123 ,
Regarding your question, you can use the 'DATEDIFF' function.
DATEDIFF function (DAX) - DAX | Microsoft Learn
The Table data is shown below:
Suppose we want to calculate the date difference to today.
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
8 |