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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rdnguyen
Helper V
Helper V

DAX ISBLANK Date column

rdnguyen_0-1695043467586.png

Good moring, 

 

I have a simple Dax code to check if a Date column is blank. 

The code ISBLANK(_shipD) return true eventhough data existed. Function LEN and direct return _shipD has correct value

 

Will ISBLANK function applicable to Date column?

 

2 REPLIES 2
rdnguyen
Helper V
Helper V

But regarding the row context, if the row has Date value, ISBLANK() should return false, isn't it?

123abc
Community Champion
Community Champion

es, the ISBLANK function is applicable to a Date column in DAX. However, it's important to understand how the function works and what might be causing it to return TRUE even when data exists.

The ISBLANK function returns TRUE when a given expression or column is truly blank or contains a null value. In the context of a Date column, a Date column can contain null values, which represent missing or undefined dates.

If ISBLANK(_shipD) is returning TRUE even when data exists in the _shipD column, it could mean that there are null values in the Date column. Null values in a Date column can occur if the data source contains missing or undefined dates.

To troubleshoot this issue, you can try the following:

  1. Check Data Source: Examine the source data to ensure that there are no missing or undefined date values. Verify that all dates are correctly populated.

  2. Null Handling: If you find null values in your Date column, you can handle them using DAX functions like IF(ISBLANK(_shipD), <default_value>, _shipD) to return a default value when the date is null.

  3. Data Type: Ensure that the data type of the Date column is set to Date or DateTime, and that there are no unexpected data type conversions happening elsewhere in your DAX calculations.

  4. Data Preview: Review the data preview in Power BI or your data source to verify that there are no unexpected null or blank entries in the Date column.

  5. Data Cleansing: If necessary, clean and transform your data source to ensure that all date values are correctly formatted and populated.

  6. Column Name: Ensure that there are no other columns in your data model with similar names that might be causing confusion.

By addressing these points, you should be able to identify and resolve the issue with the ISBLANK function returning TRUE for your Date column when data exists.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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