Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
johnsiah91
Frequent Visitor

Temp Table using Direct Query

Hi,

 

I was able to bring in data to PBI Desktop using temp tables but I get an "Incorrect Syntax Error" now when I try it now. Did something change? 

 

I did a couple of test of my end:

1. I tried to use the SQL code (has temp tables) that is already in PBI Desktop and tried to import it and I am getting the error now.

2. I compared the old code and new code but did not see any differences.

 

p.s I am not allow to create a view or stored procedure due to a contract agreement with the data company.

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@johnsiah91 , Try if you can use a query with "with" clause.

With statements give me the same error message. As of now, the only workaround I have is to put everything into a nested statement.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.