Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |