Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
aracoustic30
Frequent Visitor

cant display visual - data type year from database

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?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vyilongmsft_0-1711592999677.png

 

 

 

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.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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.

vyilongmsft_0-1711592999677.png

 

 

 

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.