Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
How can I calculate the number of days between a date column formatted as "Date" and the current date in the query editor? For example, if my column has 8/5/2019 and the current date is 8/9/2019 then the custom column would read "4". Any thoughts? Thanks!
Solved! Go to Solution.
Hello @johankent30
In PowerQuery you can add a custom column and use this formula
Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Your Date Column] )
In DAX you can add a calculated column and use this formula
DATEDIFF([Your Date Column],TODAY(),DAY)
Hello @johankent30
In PowerQuery you can add a custom column and use this formula
Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Your Date Column] )
In DAX you can add a calculated column and use this formula
DATEDIFF([Your Date Column],TODAY(),DAY)
User | Count |
---|---|
84 | |
73 | |
73 | |
58 | |
51 |
User | Count |
---|---|
43 | |
41 | |
35 | |
34 | |
30 |