Forum Discussion
How do I change a query from Import to Direct Query?
- 10 years ago
Hi Anonymous and diverdown1964, i had commented on this question in another thread:
Hope that helps.
BR
Hi BR,
Thanks, I was fast coming to the same conclusion, I had the idea to copy the Advanced Editor code from the old file to the new direct query file and obviously started getting errors due to the transformations - makes sense just to start again and deal with the 'limitations' of the different connection type.
Cheers
Mark
The newish copy & paste functionality in the Query Editor doesnt work in this scenario. Somehow it copies across the Import setting to a PIBX with existing Direct Query queries, even though the PQL code is identical (and doesnt break the Direct Query "rules"). There's no visible UI setting on the query to fix this.
I'm doing it by starting with a DQ query, then duplicating that and copying the name and PQL script from my Import model. Finally I rebuild the Relationships.
It's frustrating - surely this was an obvious "use case" when DQ was introduced?