Forum Discussion
Power BI Report Server Data Sources and Scheduled Refresh
So, while that seems to solve it temporarily - even if you download the file back from the server the next time you upload it again it switches back to DirectQuery.
Am I just doing this completely wrong? I really need this to refresh and short of re-developing a huge solution from scratch again, I can't think of anything to do. And there's no guarantee that would solve it either.
Here is how I was able to resolve this issue:
export Report as [reportName].pbit (can use .pbix as well, just smaller)
rename [reportName].pbit to [reportName].zip
extract all
edit "DataModelSchema" with notepad
update "defaultMode": "directQuery", to "defaultMode": "import",
Highlight all files, Right Click-> Send to -> Compressed (zipped) folder
rename resulting zip to [reportName].pbit
Now when it is deployed, it no longer has any issues. Re-downloading should now reflect the fix.