Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
When importing my data it has identified my date field as a text field. The option to transform my data from text to date seems to be greyed out and as a result my trend lines are not working correctly (alphabetical rather than chronological.)
Any idea how to fix this/why this is happening?
Solved! Go to Solution.
Hi @newuser101 ,
If the "Month" and "Year" are separate columns, it will show as "text" and "whole number" in Power BI Desktop. And you can't convert them into a DATE type or use FORMAT function to change the type. It may show an "error".
If you have at least two parameters such as month-year, you can convert it to DATE type.
You can reference the following document.
Data types in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @newuser101 ,
If the "Month" and "Year" are separate columns, it will show as "text" and "whole number" in Power BI Desktop. And you can't convert them into a DATE type or use FORMAT function to change the type. It may show an "error".
If you have at least two parameters such as month-year, you can convert it to DATE type.
You can reference the following document.
Data types in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Can you check whether the datatype is set to "whole number"? This could be the issue.
Best regards,
Tim
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |