Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello everyone,
I have prepared the powerbi file for one of the projects, where I get some of the data from Sharepoint and some of them from the SQL server.
It works fine.
There are plenty of projects, instead of creating for each project separate powerbi file, I am just thinking if it is possible to input variable to powerbi script. The only change would be within ID of the project.(one for sharepoint and another for SQL)
In other words, want to just input different ID and get the table for that project accordingly.
All the projects have the same structures, column names ect.
Solved! Go to Solution.
@Anonymous Well, 2 approaches. You could create a function that returns the table for a project and create a query that appends all of the data together in a table/tables. The other option is to use dynamic M query parameters:
Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs
@Anonymous Well, 2 approaches. You could create a function that returns the table for a project and create a query that appends all of the data together in a table/tables. The other option is to use dynamic M query parameters:
Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs
Hello,
Just a quick question. Would that be possible to make it like a mini-application. Some window pops up and asks for the project ID. After typing the user id, the table would be automatically created and merged(sharepoint one as well as SQL table).
P.S as I mentioned earlier for all the projects code would be same in advanced editor. The only change is project id(as want to apply the script to various projects, based on user's input)
Thanks in advance for your assistance!
Thanks for the reply.
Regarding the first option, should this function be created in M query and then inputs have to be given?(or in advanced editor)
Do not have experience in M query so question could be very simple.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |