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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.