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
admin_xlsior
Post Prodigy
Post Prodigy

LOOKUP VALUE in direct query

hi,

 

is LOOKUPVALUE not supported in Direct Query ?

 

I have two table (from SQL Direct query) which both no relationship.

But I want to get the value from table A to table B.

 

I try to add calculated column in table B, but there is no such funtion if looking at intelisense.

 

 

Thanks,

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @admin_xlsior 

Try to create the relationship.

It should work.

Good Luck!
A

Hi,

 

For unknown reason, I cannot put relationship to that table, everytime my Power BI freeze.

FYI, the table I wan to to relate (or the loookup table)  is having a binary column (it's a jpeg file), would that be a problem ?

 

I also get the data not in the "normal way", because somehow I need to run a query in the M language, because I need to convert the binary column from SQL server to text during the catch, like this :

 

let
    Source = Sql.Database("---myAzureServer--", "--myDB--", [Query="select distinct dataareaid, cast('' as xml).value('xs:base64Binary(sql:column(""image""))', 'varchar(max)') as [Image] from COMPANYIMAGE", CreateNavigationProperties=false])
in
    Source

 

Suspected this is also the cause it is freeze when I want to put relationship to other table. Hence I decided not to put a relationship but use LOOKUPVALUE function.

 

thanks.

 

 

 

 

 

 

 

 

 

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.