cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
milky_bar_may
Helper IV
Helper IV

Power Bi and PowerApps - Publish PowerBI data to a sharepoint list

Hi everyone,

 

My Power BI data comes from an excel sheet.

 

I want to build a Power App that uses this Power BI and publishes it out to a Sharepoint list. 

 

Is this possible?

 

Excel->PowerBi->PowerApps->Sharepoint List

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @milky_bar_may ,

Do you want to patch Power BI data from your Power BI report to your SP list?

 

Based on the needs that you mentioned, I think the PowerApps Custom Visual in Power BI report could ahieve your needs. On your side, you could consider embed an canvas app into your Power BI report using PowerApps Custom Visual.

 

When you select record from other visual (e.g. Table) in your Power BI report, the corresponding record data would be transfered into the embedded canvas app through PowerBIIntegration control.

Within your embedded app, you could consider add a Gallery control, set the Items property to following:

PowerBIIntegration.Data

then the selected records from your Power BI report would be displayed in this Gallery. Within this Gallery, you could add some Label controls, set the Text property to following:

ThisItem.Column1
ThisItem.Column2
ThisItem.Column3

 ...

to display the column value of these selected records from your Power BI report.

 

After that, if you want to patch the displayed records value in your Gallery back to your SP List, I think the Patch function could achieve your needs. You could add a "Submit" button (in same screen as above Gallery) within your embedded canvas app, set the OnSelect property to following:

ForAll(
       Gallery1.AllItems,
       Patch(
             'YourSPList',
              Defaults('YourSPList'),
              {
                 Column1: Label1.Text,
                 Column2: Label2.Text,
                 Column3: Label3.Text,
                 ...
              }
       )
)

Note: The Label1, Label2, Label3, ... represents Label controls in above Gallery.

 

More details about embedding a canvas app into a Power BI report, please check the following video:

https://www.youtube.com/watch?v=b9gBXUdd55M

https://www.youtube.com/watch?v=xhFQxS6VRws

 

Best regards,

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

View solution in original post

6 REPLIES 6
notj
Post Prodigy
Post Prodigy

Seems like an odd way of handling the data.You're looking to create a duplicate set of the same data, but what happens if someone edits the data in SharePoint? 

 

Also, I would think you might be better off using a Flow to move the data, if you really wanted to have two sets of the same data. Or connect SharePoint and Excel. 

Many thanks for your response.

 

I should have clarified my situation further.

 

My excel data dump goes straight into Power BI. I use calculated columns etc to produce the output that I need. The output is a table that the user needs to interact with.

 

For example 1 table highlights all exceptions. The user needs to be able to make comments on the progress of these exceptions.

 

So my idea was create it in Power BI, then build an App to allow the user to interact with the exceptions. Once the user has updated the comment on the exceptions this would be published to a sharepoint list. 

 

Finally I connect to that sharepoint list and bring it into Powerbi. 

 

So I don't think I am duplicating data per se.

 

Is this possible? 

I think I have a slightly better idea of what you're asking for. You're probably going to want to bring the information into a collection, display it in a gallery, and then have a save button that Patches to a SharePoint list.

The gallery would just have all the fields of the table, plus a comments field. 

 

The SharePoint list would have all the same fields of that gallery. 

Below is a couple links that can get you started.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearc...

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

 

This may not be useful if you don't plan on creating/updating the same items. 

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Using-the-Patch-function-to-either-c...

Thank you for your suggestion!

 

I took a quick read (before further study tonight).

 

Is this the basic gist of it?

 

Create the app from my Power Bi data fields. 

 

From this create a collection, display it in a gallery and then patch it through to sharepoint? 

 

Thank you again

 

 

v-xida-msft
Community Support
Community Support

Hi @milky_bar_may ,

Do you want to patch Power BI data from your Power BI report to your SP list?

 

Based on the needs that you mentioned, I think the PowerApps Custom Visual in Power BI report could ahieve your needs. On your side, you could consider embed an canvas app into your Power BI report using PowerApps Custom Visual.

 

When you select record from other visual (e.g. Table) in your Power BI report, the corresponding record data would be transfered into the embedded canvas app through PowerBIIntegration control.

Within your embedded app, you could consider add a Gallery control, set the Items property to following:

PowerBIIntegration.Data

then the selected records from your Power BI report would be displayed in this Gallery. Within this Gallery, you could add some Label controls, set the Text property to following:

ThisItem.Column1
ThisItem.Column2
ThisItem.Column3

 ...

to display the column value of these selected records from your Power BI report.

 

After that, if you want to patch the displayed records value in your Gallery back to your SP List, I think the Patch function could achieve your needs. You could add a "Submit" button (in same screen as above Gallery) within your embedded canvas app, set the OnSelect property to following:

ForAll(
       Gallery1.AllItems,
       Patch(
             'YourSPList',
              Defaults('YourSPList'),
              {
                 Column1: Label1.Text,
                 Column2: Label2.Text,
                 Column3: Label3.Text,
                 ...
              }
       )
)

Note: The Label1, Label2, Label3, ... represents Label controls in above Gallery.

 

More details about embedding a canvas app into a Power BI report, please check the following video:

https://www.youtube.com/watch?v=b9gBXUdd55M

https://www.youtube.com/watch?v=xhFQxS6VRws

 

Best regards,

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

Thank you so much! 

 

If you could recommend any extra learning material I would greatly appreciate it! 

 

Thank you 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,503)