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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
DerekMcKinnon
Regular Visitor

Power BI automatically converts 1 to -1

Sorry, I'm a newbie to Power BI.  The first screenshot below is a simple query of my MySQL data showing just one row.  You can see the Booked, Present and Charged fields are all 1.MySQL Query Issue.png

Below is a screenshot from my Power BI data table.  The same data is included, but now the values are all -1.

Power BI Query.png

 

Several days ago when I first imported the data it was importing as true and false, so I changed the data type and it worked fine.  Today I fixed up some of the joins between data sources and updated the data, and then it started coming in as negative.

 

What have I missed?

Thanks

Derek

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @DerekMcKinnon 

It seems that this is due to the change of data type. Please go to Power Query, remove the step Changed Type, then change the column type again.

vxiaotang_0-1630573727565.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
DerekMcKinnon
Regular Visitor

There was no specific change type in query originally, but once I applied the data type change it all started working.

v-xiaotang
Community Support
Community Support

Hi @DerekMcKinnon 

It seems that this is due to the change of data type. Please go to Power Query, remove the step Changed Type, then change the column type again.

vxiaotang_0-1630573727565.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@DerekMcKinnon , This can be a data type conversion issue. Try doing this change of data type in power query and try 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors