Forum Discussion

Fern_21's avatar
Fern_21
Helper V
1 year ago
Solved

Query Folding error in Direct Query

Hi all! I've a report connected to tables in DirectQuery. In a filter, I need to insert a concatenation between two fields, and I try to create it either in Power Query or directly in DAX with t...
  • grazitti_sapna's avatar
    1 year ago

    Hi Fern_21,

    The problem here isn’t the syntax of your DAX expression, but the limitations of calculated columns and model transformations in DirectQuery mode.

     

    When using DirectQuery, calculated columnsare not pushed down to the data source — they’re evaluated in the Power BI engine after the data comes in. This breaks filtering because filters need to be translated into SQL and sent to the source, and your concatenated column doesn’t exist in the actual SQL schema.

     

    1. Try creating the concatenated column in Source database (SQL).

    2. Create Calculated column in Import mode as direct query will not support it

    3. Use both fields in separate slicers/filters

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
    🔗 Curious to explore more? [Discover here].
    Let’s keep building smarter solutions together!