Forum Discussion
Custom query with CTE not supported (bug?)
- 10 years ago
I ran into this issue when attempting to use Direct Query Mode. As Qiuyun has said, you can use import mode as a way around this but then you obviously have the timing issues with the data set being dependent upon being refreshed (not live).
I ended up having to build most of my data sets in SQL server using views etc and then direct connect to those.
This is still an issue. CTE's in Direct Query mode work in Preview but errors when you try and use it. As far as I can see, the 'solution' is that it's been raised with Microsoft. Is there an update? Are Microsoft going to fix this?
- jmccroddan6 years agoRegular Visitor
Still an issue in April 2020 version. Hopefully they will fix this issue soon. I do appreciate the workarounds in the thread. If you have permissions to to create a view, you can copy your CTE in the SELECT/FROM block of the view, as someone mentioned above.
- Anonymous6 years agoNot applicable
Still an issue in May 2020. Wonder if this was brought up internally. It's been almost four years from first post.