Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 column that if the close date is future date then just use todays date.
Thanks so much in advance
Solved! Go to Solution.
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.
Hi @powerbiwork ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Stephen Tao
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.
Hi @powerbiwork ,
I noticed that you forget to add brackets before "else". Please try to add it.
Proud to be a Super User. If I helped, please accept the solution and give kudos! |
Ah, got it thank you. But now I seem to have another error 😞
Before you add custom column, please check the format of CloseDate - should be "Date".
Proud to be a Super User. If I helped, please accept the solution and give kudos! |
I've checked that it is date
Please share sample of data then I can help you.
Proud to be a Super User. If I helped, please accept the solution and give kudos! |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
78 | |
63 | |
52 | |
47 |
User | Count |
---|---|
212 | |
82 | |
61 | |
61 | |
60 |