Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I need to make some changes to the SQL statement I have as a Direct Query using SQL Server in Power BI. What is the best way to go about doing this without losing all my relationships and connections? Should I create a new data source using the updated code and then do change data source? When I look at the query in the advanced editor there are a lot of symbols between the fields that power bi adds so I don't think I can just copy and paste into that window? Any thoughts would be appreciated I would hate to have to rebuild these dashbards from scratch. THank yoU!
Solved! Go to Solution.
@shelbsassy So first, cut a copy of your desktop PBIX file and save it as a seperate file. Use that file to mess around with so you aren't so worried about destroying your report.
You can easily access the original query by going to edit queries and clicking on the wheel icon next to the "Source" in the Applied Steps pane on the right hand side. This will open the original prompt and you can copy/paste the new code in there.
As long as the new query includes the columns you are already using you shouldn't have any issues with things breaking. You would do this for each query you have, as each would have their own SQL code I assume. (If you have multiple queries and you are worried about relationships breaking)
@shelbsassy So first, cut a copy of your desktop PBIX file and save it as a seperate file. Use that file to mess around with so you aren't so worried about destroying your report.
You can easily access the original query by going to edit queries and clicking on the wheel icon next to the "Source" in the Applied Steps pane on the right hand side. This will open the original prompt and you can copy/paste the new code in there.
As long as the new query includes the columns you are already using you shouldn't have any issues with things breaking. You would do this for each query you have, as each would have their own SQL code I assume. (If you have multiple queries and you are worried about relationships breaking)
@Anonymous Thank you for your reply! Just what I needed! Saved me a lot of work!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |