Forum Discussion
Anonymous
5 years agoNot applicable
Power query - if function with dates
I have table with two columns with dates Release date and closed date. I want to create custom column, but I don't know how i should create formula. Basically I need 3 category 1) if relase date ...
- Anonymous5 years ago
Hi Anonymous ,
You can add custom column with the formula as shown in below screenshot, later please adjust the conditions base on your scenario..
=if [Release date] < #date(2020, 1, 1) then 1 else if [Release date] > #date(2019, 12, 31) and [Release date] < #date(2021, 1, 1) then 2 else if [closed date] < #date(2021, 1, 1) then 3 else 0Best Regards
Anonymous
5 years agoNot applicable
Hi Anonymous ,
You can add custom column with the formula as shown in below screenshot, later please adjust the conditions base on your scenario..
=if [Release date] < #date(2020, 1, 1) then 1
else if [Release date] > #date(2019, 12, 31) and [Release date] < #date(2021, 1, 1) then 2
else if [closed date] < #date(2021, 1, 1) then 3
else 0
Best Regards