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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mtakahashi
New Member

error value 'preferred'

when i try to refresh data or create a new dashboard

 

Expression.Error: Valur "Preferred" is not on of the correct type.

 

i did a test with a mysql database with only one simple table and I saw the same message errora.png

 

1 ACCEPTED SOLUTION

Dear Ross73312, thanks a lot. 

After playing and reviewing everything, I uninstalled the odbc connector from mysql and also uninstalled the powerbi desktop. Install everything from scratch on my laptop and it was fixed.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

If i had to guess, i'm expecting your Preferred column is either of type Date or Number.  You might have a step that is trying to set this column as a type such as that.  In your new data, some value is appearing that is not of that type.  For example if you was numbers, you might have a value that contains a dash, or a blank.

Dear Ross73312, thanks a lot. 

After playing and reviewing everything, I uninstalled the odbc connector from mysql and also uninstalled the powerbi desktop. Install everything from scratch on my laptop and it was fixed.

Hello! I have also the same problem! Did you change anything in your database? You had errors in data types? I am still trying to figure out what's going on. I uninstalled and installed Power BI and ODBC Connector but nothing has changed!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors