Forum Discussion
Not able to save CTE as Table or View
- 2 years ago
I think this is now a Power BI issue rather than a Synapse issue. You will be better served posting this logic issue in the Power BI forum
Hello lovishsood1
When you say "I want to save this SCRIPT as TABLE " , I am asuming that the intend is just to have these rows on some report , please correct me if I am wrong . I think we can use the view route for this for now.
Since you have a CTE which you are running and i suggest you can create a view using the the CTE ( AndyDDC was also pointing that out ) and the use that view to get the data in the report . I have some dummy data with which i tried and it worked .
Himanshu
Hi Himanshu,
I am getting the same error as above. But I cannot fix it with the solution you have presented.
My code is below and it runs perfectly when I hit run on the SQL analytics endpoint.
However, when I select the code and hit "save as view" I get the following error "Incorrect Syntax near the keyword 'WITH'"(same error as above)