The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
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.
Regards,
Xiaoxin Sheng
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.
Regards,
Xiaoxin Sheng