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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I want to display year data from a database that is connected by direct query to mariadb. when the year column has the type YEAR an error 'cannot display the visual' appears. in another table there is a year column with the INETEGER data type which does not experience errors when I try to visualize it. what can I do to deal with that YEAR type data?
Solved! Go to Solution.
Hi @aracoustic30 ,
I think the reason for such problems should ensure that all the values in the YEAR column are within the acceptable range for MariaDB. Also if the visual tool you’re using doesn’t support the YEAR data type directly, you might need to convert the YEAR column to a different format. You can also read this document: mariadb.com
I think you also can right click on the Date column and select Change Type > Using Locale... In the Change Type window, select Date for Data Type, English (United Kingdom) or other locales which has the same date format as your original Date column input. This should change the type into Date correctly.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aracoustic30 ,
I think the reason for such problems should ensure that all the values in the YEAR column are within the acceptable range for MariaDB. Also if the visual tool you’re using doesn’t support the YEAR data type directly, you might need to convert the YEAR column to a different format. You can also read this document: mariadb.com
I think you also can right click on the Date column and select Change Type > Using Locale... In the Change Type window, select Date for Data Type, English (United Kingdom) or other locales which has the same date format as your original Date column input. This should change the type into Date correctly.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.