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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power Query is converting a numeric column to true/false

I am loading a table into PowerBI via PowerQuery. One column is named "status", and has values of either 0,1,2,3. When I load it, the column is converted to True/False. Screenshots are of the column as seen in PyCharm, and as seen in the navigation step within PowerQuery. Please help, and thanks!

alillien_0-1658939005731.png

alillien_1-1658939058135.png

 

Edit: I believe the issue is that the string type in the database is "tinyint(1)=0" instead of just int. But how do I solve this?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
3 REPLIES 3
Anonymous
Not applicable

amitchandak
Super User
Super User

@Anonymous , Change datatype to whole number or text and try

Anonymous
Not applicable

I have tried that already, it loses the 2,3 values and converts to 0,1 values only. Same is true for all other number types.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.