Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
217 | |
89 | |
82 | |
66 | |
57 |