Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

getting data from various projects at once

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.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@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

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@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

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

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!

Anonymous
Not applicable

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.

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.