Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I'm trying to create a field which shows how many hours have passed since a specific date/time.
Something very simple in theory.
In the Edit query option the function now() is not recognized, so I had to create a measure Now=now() and then a column DIF=Now-DateTimeField with the difference, but the result is a decimal number that I couldn't change into a duration field.
And even if I could do that, there is no way to add a column with the Total Hours as you can do in the EditQuery Options.
How do you do this kind of things? I'm sure it must be very simple!
Solved! Go to Solution.
Try:
Column = DATEDIFF([Date],NOW(),HOUR)
This is DAX, not query editor by which I assume that you were referring to "M" but your formulas looked like DAX. A bit confused.
Try:
Column = DATEDIFF([Date],NOW(),HOUR)
This is DAX, not query editor by which I assume that you were referring to "M" but your formulas looked like DAX. A bit confused.
That was perfect!
Thank you vey much!!!