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! It's time to submit your entry. Live now!
I have a coloum date (Integer), i change in text and then in date time but 0 value cause an error.
How can i fix that?
| Date |
| 20210101 |
| 20210102 |
| 0 |
| 20210103 |
| 20210104 |
Solved! Go to Solution.
Hi @Supermat ,
I would suggest after you modify this column to TEXT datatype, add a transformation of replacing 0 with NULL and then tranforming it to Date type. You can easily do this in Power Query editor in Power BI.
This is you date column which is text type:
Then add a transformation step to replace 0 with Null (as 0 can't be taken as a date)
Now modify the column data-type to Date type:
You will get the desired result.
Thanks,
Pragati
Hi @Supermat ,
I would suggest after you modify this column to TEXT datatype, add a transformation of replacing 0 with NULL and then tranforming it to Date type. You can easily do this in Power Query editor in Power BI.
This is you date column which is text type:
Then add a transformation step to replace 0 with Null (as 0 can't be taken as a date)
Now modify the column data-type to Date type:
You will get the desired result.
Thanks,
Pragati
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |