cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sp_mike Regular Visitor
Regular Visitor

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

Accepted Solutions
Microsoft artemus
Microsoft

Re: This table uses directquery and cannot be shown - Workaround?

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

1 REPLY 1
Microsoft artemus
Microsoft

Re: This table uses directquery and cannot be shown - Workaround?

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

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Kudoed Authors