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,
Did you ever get anywhere with this, got the same issue myself.....?
Cheers
Hi Anonymous and diverdown1964, i had commented on this question in another thread:
Hope that helps.
BR
- Anonymous4 years agoNot applicable
I know this thread is a little bit old, but for anyone looking to do this I was able to partially achieve this. It seems if you go into the Power BI Desktop Query editor, remove the old table and reimport it then when you apply the Dataset updates it will prompt you. It appears you need to re-add your relationships, but at least it's not starting from scratch.
- Anonymous10 years agoNot applicable
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
- mike_honey10 years agoMemorable Member
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?