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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MichaelPercival
Frequent Visitor

PowerBI wrongly changing "0" and "1" to just "1"

Hiya, 

Totally bambuzled by an apparent PowerBI glitch.

 

I've got an excel table that calculates either a 1 or a 0. A powerquery to the spreadsheet then adds this to PowerBI. In PowerQuery the numbers match excel. When it enters PowerBI however, it switches everything to 1. I've tried changing the data type in Power Query and PowerBI to see if that's affecting the resul, but whether as True/False, Text, number, or decimal, it always shows correctly in PowerQuery, but incorrectly in Power BI.

 

I appreciate the below isn't very useful for diagnostics, but hoping someone might have come across this issue before/known issue?

 

Data in PowerQuery:

MichaelPercival_1-1728919861031.png

Same rows in PowerBI:

MichaelPercival_0-1728919776252.png

 

 

 

4 REPLIES 4
MichaelPercival
Frequent Visitor

To answer the above, that's what has me stumped - there's no real processing in Powerquery, and as mentioned, I've tried changing the data type in Powerquery to true/false, number, text, and decimal and always shows correcy in Power Query.

MichaelPercival_1-1728923984893.png

 

and I'm looking at the table view in Powerbi, and trying all the data types to see if I can get it to display anything different, but always each row that shows 0 in both Excel/PowerBI is changed to 1 in PowerBI table,(or true if set to true/false).

MichaelPercival_0-1728923820190.png

 

Hi @MichaelPercival ,

 

Please check if enable load is enabled for this table in the power query and the steps are applied.

 

Best regards,
Community Support Team_ Scott Chang

ajohnso2
Responsive Resident
Responsive Resident

Just a thought to ensure your PBI visual is not doing some kind of aggregation also. I.e Max, Min, Sum etc.

Posting your model may help, do you have any joins to other tables that could effect the outcome?

 

Not come across this as an issue/bug myself...

audreygerred
Super User
Super User

What steps do you have applied in Power Query?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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