Forum Discussion
NumeroENAP
6 years agoHelper III
Getting errors with a column transformation (future dates to today's date)
Hi, I want to replace future dates in my column by today's date, but i'm only getting errors. My query : = Table.TransformColumns(#"LastLine", {"Date created", each if [Date created] > (Da...
- 6 years ago
here the correct version of your syntax
= Table.TransformColumns(#"LastLine", {"Date created", each if _ > (DateTime.FixedLocalNow()) then Date.From(DateTime.FixedLocalNow()) else _, type date})
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
NumeroENAP
6 years agoHelper III
Well, I found my problem on https://docs.microsoft.com/fr-fr/power-bi/service-admin-troubleshooting-power-bi-personal-gateway
It was indeed due to the data source.
I checked my datas, and there was a single data that wasn't right...
Jimmy801
6 years agoCommunity Champion
Hello
well... your syntax posted in the first post will never work, independent from your data source
Bye
Jimmy