Forum Discussion
jcastr02
6 years agoPost Prodigy
datediff into power query
I have a date diff column that added , but i'd like it to show up in my power query. How can I ahieve this? I am trying to create categories based on the amount of time difference between the two ...
- 6 years agoDepends on exactly what you want, but:
Number.RoundTowardZero(Number.From([Column1]) - Number.From(DateTime.LocalNow()))
edhans
6 years agoCommunity Champion
If you are doing two dates and want the weeks between, per your definition, this should work
Number.RoundAwayFromZero(
Number.From([Date 2] - [Date 1]) / 7
)