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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.