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
JLaine
Helper I
Helper I

How to use SQL 'binary(8)' data type in PowerBI ?

I am trying to use Power BI for the first time (I'm new to Power BI) to report on data which is too big to use easily in Excel, and am having a great deal of difficulty getting my data into PowerBI in the first place.  Please help.

 

At our company we have an SQL database of transaction records covering more than 10 years of history, with several million records.  When I try to access this SQL server data source from PowerBI, I see this database has over 300 data tables.  These tables are named such that I can easily identify which data columns are used to reference other tables (basically, multiple look-up tables), but PowerBI does not seem to understand those data table relationships automatically, and when I use 'manage relationships' none of the data table _ID columns are listed as being available to establish relationships between tables.  When I use the Query editor, every _ID column is listed as having a 'binary' data type and is displayed in a different color from all other data types which I can see in 'manage relationships'.

 

Now, I am an end-user not a database administrator but I can use Microsoft SQL Server Management Studio 17 to see the database structure, and I can see that all of these _ID columns are data type "binary(8)", which is just another way to say its a 64-bit integer number (LINT).  So in Power BI's query editor I try to manually tell PowerBI that the _ID Colum’s data type is 'integer', but it does not work, with PowerBI simply reporting 'error' in the data Colum, instead of 'integer'.

 

So, what do I need to do in PowerBI to work around this issue?  I've ready that 'binary' data types are not supported in PowerBI, but that is not acceptable to me as these are simply 64-bit reference numbers for the lookup tables, not something complex like pictures or other binary data.  So how can I force PowerBI to recognize that these ID columns are simply 64-bit numbers?

 

1 REPLY 1
Anonymous
Not applicable

I know this might be the reverse of your problem, but does this thread offer any insight?

http://community.powerbi.com/t5/Desktop/Number-to-Binary/td-p/235261

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.