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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Seb2441
Regular Visitor

reading null date value

I'm trying to get a new column created where i will have a status based on the date in a column.... 

 

My formulas look like this:

 

=if [TARGSTARTDATE] < DateTime.LocalNow() then "Needs Rescheduled"

else if [TARGSTARTDATE] >= DateTime.LocalNow() then "Scheduled"

else if [TARGSTARTDATE] = null then "No date"

else "Not"

 

Problem is for the records where the date is "null", i get an error instead of the "No date" like i want...

 

Any help would be appreciated.

 

1 ACCEPTED SOLUTION

The column is a Date data type and it is expecting a date... 

 

I think i solved the issue by creating a new column with the date difference between todays and that date... if its 0 then label as No date...

 

Thanks

View solution in original post

2 REPLIES 2
Ruslan66
New Member

Why not let the value remain Null and change it in the Query editor by replacing the "meaning" of null?

PowerBIpic2.PNG

 

Click on Edit Query, Home, Replace Values and then replace the value "null" with "No Date"

PS: you have to select the column where you want this change to happen

 

The column is a Date data type and it is expecting a date... 

 

I think i solved the issue by creating a new column with the date difference between todays and that date... if its 0 then label as No date...

 

Thanks

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors