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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bdehning
Post Prodigy
Post Prodigy

Null Vales and Time Column

Is there a way to replace null values with other text in a Time Column?    

 

When I use the column for a Table, it shows all nulls as Blank and I would like other text.   

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @bdehning 

 

The data type of a column has to be the same. The value in the middle of the time column cannot be converted to a text value.

Column = IF([Time]=BLANK(),TIME(0,0,0),[Time])

vzhangti_0-1657023720000.png

Does this solve your problem?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @bdehning 

 

The data type of a column has to be the same. The value in the middle of the time column cannot be converted to a text value.

Column = IF([Time]=BLANK(),TIME(0,0,0),[Time])

vzhangti_0-1657023720000.png

Does this solve your problem?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Even if you can do that, you should not because in a single column the same data type should be maintained.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@bdehning , In power query you can do replace null ( all small null) with a value. But make sure you choose timeline 00:00:00  or  0 else data type conversion might fail

 

Power Query Replace Value: https://youtu.be/hkZhZbR7Kmk

 

In Dax new column

coalesce([Time], time(0,0,0) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.