Forum Discussion
gco
6 years agoResolver II
Calendar question
Hi there, I have a date column that shows dates for current year (01/01/2019-12/31/2019). And i would like to create a calculated column called "IsCurrentorPastMonth?" and will have a value of Y...
- 6 years ago
Hi gco ,
Here is the input form for the conditional column.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Nathaniel_C
6 years agoCommunity Champion
Hi gco
Doing this in Power Query is more efficient. Matches your post.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
= Table.AddColumn(#"Changed Type1", "CurrentDate", each if Date.Month([#"Dates IsCurrentorPastMonth?.1"]) <= Date.Month(DateTime.LocalNow()) then "Y" else "N")
Nathaniel_C
6 years agoCommunity Champion
Just tried it with 10/31 and it works. Good point.