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
sp_mike
Helper II
Helper II

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

Is there some other way to see data, including my custom column?

1 ACCEPTED SOLUTION
artemus
Employee
Employee

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.

View solution in original post

3 REPLIES 3
artemus
Employee
Employee

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.

I have a similar problem.

 

The DirectQuery table is correctly folded (check both Value.Metadata and the native query).

 

Since many PostgreSQL are having similar issues, I would like to have an update from Microsoft what support Power BI offers for using DirectQuery with PostgreSQL databases.

 

Thanks in advance.

I can't give you an official answer (I work in Azure), but I will say that there is active work in fixing folding issues in PostgreSQL, wheather the current fixes make it into production, if they will help solve your issues, or when they will be released, I would have no idea.

 

A lot of the problem has to due with, while the query by itself might fold, the additional dax queries on top of it might not. This could include even the simplist of dax queries which happened during model validation like distince count of values in each column that there is a relationship too, or it put as a filter/legend.

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.

Top Kudoed Authors