Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a direct query connection to a SQL server database and have created the relationships and some reports against it. I now want to use this same model (same table names and relationships) and report visuals but connected to a different SQL server database. Is it possible to export/import the schema (not the data) from one database to another?
That's not really a Power BI question. In SSMS you can generate the required scripts on the source server and then run them on the destination server.
Word of caution: When you change a data source in Power Query there is a non-zero chance that all subsequent ETL steps will disappear, that measures and groups will go poof, that visuals will break, or all of the above. Always, always have a backup before you attempt that.
I think it is a Power BI question. I have two SQL server databases with the same schema (but not the same data) that sit in SSMS, say DB1 and DB2. When I create a new report in Power BI, I am doing a direct query connection to the first database DB1 and I have loaded the chosen tables, managed the relationships and built some widgets on the report.
Now I want to create a new report but this time doing a direct query connection to DB2, but I don't want to have to build it all again. I wanted the exact same schema, relationships and widgets but pointing to DB2 instead of DB1 so I can make comparisons on the data
You can duplicate the power query queries and modify the source step to point to DB2.
Have you considered deployment pipelines?
User | Count |
---|---|
73 | |
70 | |
38 | |
23 | |
23 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |