Forum Discussion

SevsBo's avatar
SevsBo
Responsive Resident
1 year ago
Solved

DirectQuery issues with Related or Lookupvalue

I have a table, Table1, that is connected via DirectQuery and has a working bidirectional relationship with another table, Table2. I need to use some time intelligence with data from both to calculat...
  • v-kpoloju-msft's avatar
    1 year ago

    Hi SevsBo,
    Thank you for reaching out to the Microsoft Fabric Community Forum. Thank you johnt75, for your inputs on this issue.

    These are known limitations when working in Direct Query mode, especially with cross-table references in calculated columns.

    Important Note: Power BI does not support calculated columns that reference values from another table when using Direct Query mode. This is because the expression cannot be fully translated (or "folded") into a single SQL query, and Power BI does not materialize the data locally in this mode.

     

    For this reason, functions like RELATED, LOOKUPVALUE, or cross-table logic in calculated columns often fail or throw errors in Direct Query unless both tables come from the same source and the relationships support query folding.

    If this helps, please consider giving a Kudos or marking it as Accepted Solution to assist others in the community.

     

    Thank you for using the Microsoft Community Forum!