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.

Visualisations Incorrectly Displaying Large Integers

When displaying a large integer (in my case a BIGINT from a SQL Azure Db), visualisations appear to truncate the value to somethis less precise.  I have observed this in tables and the Text Filter slicer.

 

For example, the following value is correctly stored in the dataset:

-5355371827972002325

However in visualisations it is truncated to:

-5355371827972003000

 

This means incorrect values are being displayed, but also means the Text Filter does not work on such fields as the value that is used to search differs from that entered and does not match the underlying dataset.

Status: Accepted
Comments
v-qiuyu-msft
Community Support

Hi @mdferris ,

 

I have reported this issue internally: CRI 105793605. Will update here once I get any information. 

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support
Status changed to: Accepted
 
v-qiuyu-msft
Community Support

Hi @mdferris ,

 

I got information below: 

 

"5355371827972002325 is larger than 9007199254740991 (MAX_SAFE_INTEGER in JavaScript)

console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
The Number.MAX_SAFE_INTEGER constant represents the maximum safe integer in JavaScript (253 - 1).
 

 

The reasoning behind that number is that JavaScript uses double-precision floating-point format numbers as specified in IEEE 754 and can only safely represent numbers between -(253 - 1) and 253 - 1.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INT..."

 

Best regards,
Qiuyun Yu