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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nirmalraj_31
New Member

null handling in Date data type

Hello friends,

 

I am new to Power BI world, currently I am in learning stage. Can someone help me how to handle nulls in date data type.

 

I have a Date column in my source data. Some of the shells have nulls and some has dates available. Hence I am getting error while I am execute the data. I have a calculation based on that nulls hence I wouldn't replace the nulls with some dummy dates. Appreciate your help.

 

Thanks

Nirmal

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Nirmalraj_31,

 

The simplest way is enter to query editor and use a obviously not related value to replace null values.(e.g your date is from 2010 to 2018, then you can replace blank value as 1/1/1900)

 

If you not want to replace original date, you can try to add condition to check your formula who will calculate with null value date column and use a static date value to instead null value to calculate.

Handling BLANK in DAX

 

Regards,

Xiaoxin Sheng

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

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @Nirmalraj_31,

 

The simplest way is enter to query editor and use a obviously not related value to replace null values.(e.g your date is from 2010 to 2018, then you can replace blank value as 1/1/1900)

 

If you not want to replace original date, you can try to add condition to check your formula who will calculate with null value date column and use a static date value to instead null value to calculate.

Handling BLANK in DAX

 

Regards,

Xiaoxin Sheng

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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