Forum Discussion
powerbiwork
Helper I
5 years agoCustom Column Query
Hi, I am having issues for the following. Basically Im trying to pull a live currency rate but the currency is only pulled to todays date. In close I have future dates. I want to have a custom colu...
- Anonymous5 years ago
Hi powerbiwork ,
You can try to create your custom column as
if [Date]<=Date.From( DateTime.LocalNow()) then [Date] else Date.From( DateTime.LocalNow())Creating a calculated column is easier.
Column = IF([Date]<=TODAY(),[Date],TODAY())You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hi powerbiwork ,
You can try to create your custom column as
if [Date]<=Date.From( DateTime.LocalNow())
then [Date] else Date.From( DateTime.LocalNow())
Creating a calculated column is easier.
Column = IF([Date]<=TODAY(),[Date],TODAY())
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.