Forum Discussion
Different Schema in Testing and Production Database
- 3 years ago
Hi santhiya ,
So the idea is to already specify in your source query which of the columns you'd like to use. There are plenty of ways to do this, i.e. as explained before you create a view so you establish the query definition in the database. Otherwise, you could of course also just specify the columns you want in your query by writing an sql statement, for instance.
Here a source that might help you:
Import data from a database using native database query - Power Query | Microsoft Learn
If this does not help, please provide a screenshot of your M Power Query statement (advanced editor)
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Hi santhiya ,
I suppose you are not using the spare columns in your report, right? I'd suggest to exclude these columns before importing them to Power BI. You can do this in the source query in Power Query. Another option, which I usually go for is to create views in the source database acting as a contract for data consumers like Power BI. It would be the same concept, though. Use only the columns within the view that are both apparent in test and prod.
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/