Power BI Custom Column with Nested IF Statement

Options

Hello, I created the following custom column and I'm getting errors where the referenced date value is null. How can I handle the null values in Power Query?

if Date.Month([Prospect Opportunity Date Asked]) <= 6
then Date.Year([Prospect Opportunity Date Asked])
else if Date.Month([Prospect Opportunity Date Asked]) >= 7
then Date.Year([Prospect Opportunity Date Asked]) + 1
else null

f4c2d4d4077fc3b3df9dd0eebcf8d7ac-huge-im

Comments

Categories