Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi Team,
We have a scneario where we need to automate PowerBI dataset creation.In the current situation there are multiple databases with the same tables in different SQL servers. For eg: Table1, Table2 and Table3 will be present in DB1, DB2 and DB3. The structure of the tables will be same. Only difference will be the data present in these tables. Our requirement needs to union these tables - Table1, Table2 and Table3 to create a combined tables and expose it via a power BI dataset. There are N number of tables for which these union needs to be done and published to the same dataset. Is there any way to do this in an automated or config driven manner. Doing these manually will be tedious as there are large number of tables that needs to be exposed like these. .Also please note that these tables needs to exposed in direct query mode. Can some one guide me on a way forward?
Hi @prasantkp
Not sure if you can use the solution
Programming Power BI semantic models with the Tabular Object Model (TOM) | Microsoft Learn
But I think the best approach if possibel is that you create a Dataflow where you will be able to collect all your tables through few clicks.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook