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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
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.