The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all!
I have a column with a lot of dates. Now I would like to add a calculated column that displays "Past" if the Date if in the past. If the date is today or in the future, I would like to see the Date.
How would you do that?
Solved! Go to Solution.
hi @joshua1990
try to add a column like:
Column = IF([Date]<TODAY(), "Past", FORMAT([Date], "m/d/yyyy" ))
it worked like:
the sequence of "m/d/yyyy" depends on your preference.
hi @joshua1990
try to add a column like:
Column = IF([Date]<TODAY(), "Past", FORMAT([Date], "m/d/yyyy" ))
it worked like:
the sequence of "m/d/yyyy" depends on your preference.
Hi,
This should do the trick:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
32 | |
20 | |
17 | |
15 |
User | Count |
---|---|
48 | |
33 | |
29 | |
23 | |
20 |