Forum Discussion
jcastr02
Post Prodigy
6 years agodatediff 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
Community Champion
6 years agoIf 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
)