Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Can anyone please help as to how to resolve this error. The value is also a text which is showing error and also I have changed the data type of the column to text yet I am getting this data format error.
Solved! Go to Solution.
@smokeyjoe03 , but i need to keep that "Less than year" value in my column along with the numerical values . How can I go about it?
The column will have to remain as a string in that case, the "Change Type" operation operates on every value in the column so even just 1 value that isn't a number or NULL will cause the error.
As a workaround I suggest making two columns:
It would look something like this:
| YearsColumn (Number) | DisplayColumn (Text) |
| 0 | Less than a year |
| 1 | 1 |
| 5 | 5 |
What formula do you used?
It mention you are going to compare date and number which is impossible, instead of using number like 2, use #duration(2,0,0,0)
In the "Details" in the error it suggests the value you are trying to change to a number is the string "Less than a Year"
Anything in that column that isn't a numerical value will cause the error when converting it.
@smokeyjoe03 , but i need to keep that "Less than year" value in my column along with the numerical values . How can I go about it?
The column will have to remain as a string in that case, the "Change Type" operation operates on every value in the column so even just 1 value that isn't a number or NULL will cause the error.
As a workaround I suggest making two columns:
It would look something like this:
| YearsColumn (Number) | DisplayColumn (Text) |
| 0 | Less than a year |
| 1 | 1 |
| 5 | 5 |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 5 | |
| 5 |