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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
Anonymous
Not applicable

@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

@Anonymous,

 

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

 

 

 

Anonymous
Not applicable

@nesv,

How about you create parameter for ID in Advanced Editor?

Regards,
Lydia

@Anonymous

 

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

Anonymous
Not applicable

@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

 

@Anonymous

 

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.