Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

direct query and import tables

good afternoon

 

I have two tables the large table is a direct query table in ssas

the small table is an import table with a few hundred rows.

I join the two 

but my next step is to use the dax related function to look up a value in the second small table, but I get

the following error

The column ...................... either doesn't exist or doesn't have a relationship to any table available in the current context.  the relationship between the two table is many to one, but I still get the ( ) on the line connecting the two tables and I assume this is because one is a direct query table and the second is an import table.

is this correct, anyway to do the lookup without using the related and without making the first large table into an import table

 

 

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      calculated column

  • Hi Anonymous 

     

    Yours is a case of a limited relationship

    • many-to-many
    • from one source group to another (import to direct query and vice versa)
    •  

    Please see this documentation https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand#limited-relationships 

     

    Alternative (or not), these approaches I couldn't use with SQL server when the calculation crosses between two different source groups:

    • LOOKUPVALUE
    • RELATED
    • CALCULATE(....FILTER(...
    • measures that try to propagate a virtual relationship - using TREATAS or table1[column] in values(table2[column)
    •  
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Whether the advice given by danextian and suparnababu8 has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.

     

    Best Regards,

    Neeko Tang