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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DerekMcKinnon
New Member

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
New Member

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 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.