This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi @amitchandak @Greg_Deckler and team
Hope you are and team in well condition
I got an error while changing data type due there are empty field . [ Column Dockin Time ]
actually I have other column , which I'm willing use it to fill in to empty value . [ column Reporting time ]
as long as Dockin Time is empty , I expect to replace value with reporting time value in same row
Thanks in advance
SE
Solved! Go to Solution.
Hi @Anonymous
I think I find the reason of this issue.
Your code is as below.
X.DIN = IF(Query1[DockInDateTime]="",Query1[VehicleReportingDateTime],Query1[DockInDateTime])
"" is text format, so you will get error. You can use isblank or blank instead of "".
Try this code.
X.DIN = IF(Query1[DockInDateTime]=BLANK(),Query1[VehicleReportingDateTime],Query1[DockInDateTime])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
I think I find the reason of this issue.
Your code is as below.
X.DIN = IF(Query1[DockInDateTime]="",Query1[VehicleReportingDateTime],Query1[DockInDateTime])
"" is text format, so you will get error. You can use isblank or blank instead of "".
Try this code.
X.DIN = IF(Query1[DockInDateTime]=BLANK(),Query1[VehicleReportingDateTime],Query1[DockInDateTime])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
I did tests on this and get the same error message
However, it works in PQ, have you tried that
Proud to be a Super User!
@Anonymous create a Custom Column with
if condition
if 1st column="" then 2nd column value else 1st column value.
That should help you get all values and can avoid error
Proud to be a Super User!
I tried this , and no works
Thanks for reply , any suggestion are appreciates
@Anonymous You will need to make sure that the two columns used in your true and false returns are both of the same type. Make sure that one is not a text field and the other date for instance.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |