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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BIanon
Resolver I
Resolver I

Power BI issue with big integer

Hello Community,

I have some integer keys generated by running a hashing function on some really long strings.

The keys comes into Power Query just fine, but when I load the data into PBI the last 3 numbers are replaced by zeroes.

Here is an example of a key:
-9223335268985614144
And here is the same key after being loaded into PBI:
-9223335268985614000

The column data type is whole number and it is not being changed in data view either. What can I do to align this?

If need be I can provide more examples or information.
The hash function used is FARM_FINGERPRINT() in Big Query.

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Here we go:
Data types in Power BI Desktop - Power BI | Microsoft Learn 

tex628_3-1673963583437.png
Appears to be Javascript limitations. 

/ J

 


Connect on LinkedIn

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@BIanon , Can load it as decimal and try , change data type in Power query and in DAX use format as whole number (not data type)

Thank you for your reply.

Unfortunately the error persists when using float as well

tex628
Community Champion
Community Champion

Here we go:
Data types in Power BI Desktop - Power BI | Microsoft Learn 

tex628_3-1673963583437.png
Appears to be Javascript limitations. 

/ J

 


Connect on LinkedIn
tex628
Community Champion
Community Champion

Hi @BIanon , 

Ive done some testing and things are slightly weird. 

It seems like the 18-digit code is still imported and stored. Its's just being displayed as a 15-digit code when visualized: 

Data view:

tex628_0-1673963307565.png

Same table in report view: 

tex628_1-1673963342980.png


Relationships still work as intended, even through the keys are displayed as the same:

tex628_2-1673963388044.png

Still, i don't know why they are displayed in this way. I'll do some more research and see what i can find. 

Br,
J


Connect on LinkedIn

Thank you for this thorough and detailed response.

Your findings are consistent with what I am exepriencing and explains why I am unable to search an ID copied from a visual in the tables in data view.

If you find out more I would be interested in your findings.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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