Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

This table uses directquery and cannot be shown - Workaround?

In PowerBI desktop I "connected" a table with directquery. Now I added a custom column and want to see the result in the data view. However I get "This table uses directquery and cannot be shown"  ...
  • artemus's avatar
    6 years ago

    The ability to add custom columns in a direct query depends on the ability for the query to fold. If your Add column operation is too complex to be handled by the connector it won't work. To avoid this, try adding the custom column in power query instead (the query editor)

     

    If your using SQL try right clicking a step and see if "View native query" is not grayed out then it is folding just fine.

     

    If your using another connector that supports folding (e.g. kusto) then you would need to add a custom step of Value.Metadata(<PreviousStep>)[QueryFolding] to see if it folds or not.