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
FrankKrogh
Helper I
Helper I

Is it possible to write a direct query and use the table output as input to another direct query?

I have many times experienced that the CTE-design executes much slower than storing the CTE-expression into a temporary (#) table and then apply this table in the final SELECT expression. 

 

I believe that it is not allowed to have two or more SELECT-expressions in the same direct query. Is it possible as a workaround to write a direct query and then apply the table output as input to another direct query?

 

Are there any example on this kind of direct query design?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@FrankKrogh , It is not good idea to have complex query in case of direct query. You can use view or CTE. But try have table which you can simply query that would be better

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@FrankKrogh , It is not good idea to have complex query in case of direct query. You can use view or CTE. But try have table which you can simply query that would be better

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.