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
Hesham
Frequent Visitor

update blank Values in formula column

Hello,

 

i am new in Power Bi and need help.....

 

i write a formula to be updated based on two other colunms (Time Columns with format HH:MM) , it worked perfect but the problem it retrun the 00:00 value in the final_time with blank and that make a problem in the charts. any help .....

i need it to return same value "00:00"

 

Final_Time = IF(Source[Day_time]=BLANK(),IF(Source[Day_time2]=BLANK(),Source[Day_time],Source[Day_time2]),IF(Source[Day_time]=BLANK(),Source[Day_time2],Source[Day_time]))

Help.jpg

 

 

 

 

 

 

 

 

Best rgards

Hesham

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You might try using CONCATENATE with a "" when returning values to make your end result column Text, so something like:

 

IF(Source[Day_time]=BLANK(),
	IF(Source[Day_time2]=BLANK(),
		CONCATENATE(Source[Day_time],""),
		CONCATENATE(Source[Day_time2]),""),
	IF(Source[Day_time]=BLANK(),
		CONCATENATE(Source[Day_time2],""),
		CONCATENATE(Source[Day_time]),"")
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

You might try using CONCATENATE with a "" when returning values to make your end result column Text, so something like:

 

IF(Source[Day_time]=BLANK(),
	IF(Source[Day_time2]=BLANK(),
		CONCATENATE(Source[Day_time],""),
		CONCATENATE(Source[Day_time2]),""),
	IF(Source[Day_time]=BLANK(),
		CONCATENATE(Source[Day_time2],""),
		CONCATENATE(Source[Day_time]),"")
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Many Thanks Smoupre for your efforts, i got the idea and did work around by update it from another dummy table.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.