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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
nesv
Regular Visitor

Report on Sharepoint Lists in Sharepoint Template

Hi,

 

I want to create a Sharepoint Template with integrated Power BI Reports, based on Lists in the actual Site.

I've managed to create the template, but when I create a new site, based on this template, I need to do the following.

 

Open the .pbix report in Power BI Desktop.

Change the datasource.

Publish the report to the new new site.

Change the embed-link in the web-parts.

 

I hope there is a easier solution.

 

Any suggestions are appreciated.

 

Thannks in advance

 

Svenson

6 REPLIES 6
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@nesv,

From Power BI side, to simplify the process, you can create data source parameter in your PBIX file following the guide in the blog below. This way, you can choose different source each time and when you publish the PBIX file to Power BI Service, the embed link is always the same.

http://biinsight.com/power-bi-desktop-query-parameters-part-1/

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft,

 

The parameters doesn't solve the data source problem.

I can change the source, but I still have to change the ID for the List-table, in Advanced EditorList-Table-ID.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Advance-editor.png

 

 

 

@nesv,

How about you create parameter for ID in Advanced Editor?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

I've googled for a while, and can't find any guide in getting the ID of a Sharepoint List.

 

My mission is to create a Parameter (or a Query), that gets the ID of my List.

Then I would be able to use this parameter later on 🙂

 

Do you have any guide (or hint) that could lead me in the right direction?

 

regards Svenson

@nesv,

On Power BI side, you can add a new blank query and paste the following code to the Advanced Editor of the blank query.

let 
    parameterSource = (IDparameter as text) => 

let
    Source = SharePoint.Tables("https://sharepointsite", [ApiVersion = 15]),
    #"getlist" = Source{[Id=""&IDparameter&""]}[Items],
    #"Renamed Columns" = Table.RenameColumns(#"getlist",{{"ID", "ID.1"}})
in
    #"Renamed Columns"

in
   parameterSource


Then manually enter ID in the function to get a table of that ID. 
1.JPG/

It is not possible to change ID when entering sharepoint site URL at the beginning.
2.JPG


Regards,
Lydia

 

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

What I was looking for, was to automate the process, when creating a new SharePoint Site based on a template.

I wanted to create the PowerBI in a way, that the user only have to enter the sitename, and some query and parameters could take care of the rest 🙂

I know the name of the 2 SharePoint lists I want to make PowerBI reports on.

 

But as far as I can see, for now, it isn't possible.

 

I thank you very much for your answers, but will not mark this as a solution 🙂

 

Thanks

Svenson

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors