Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
char23
Helper II
Helper II

Null dates fields with custom column

How can I deal with null values in a date column in power query. I am basically trying to deal with blank values that show null in power query, but show as blank in the dashboard view. I am trying to write, if [Column1] <> null and [Column2] <> null then "write text" or a statement like if [Column1] = null then "write text", but I keep getting errors. I can't change the null values to a bogus date like (1/1/1900) because it will affect the values I calculate for this column. 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @char23 ,

Can you please share some more detail information about this issue? They should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

In addition, you can also take a look at the following link about handle with blank in dax.

How to handle BLANK in DAX measures - SQLBI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

definitely avoid using bogus dates. Consider using COALESCE([date],TODAY()) or consider ignoring these values in your measure.  If you provide some more details it will be easier to assist.

Hello, thank you for the response. I am trying to write nested if statements in power query for a conditional column. I keep getting the error

 

"Expression.Error: We cannot convert the value null to type Logical.
Details:
Value=
Type=[Type]"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors