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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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) )

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.