cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Can I export data from Power BI to SharePoint List?

Hello,

 

I have a power bi report published in my workspace. the data source is from a dataflow.

 

My aim is to export a specific table to a SharePoint list (copy data from the table to the list). Is it possible? Any ideas?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

I have a found workaround.

View solution in original post

28 REPLIES 28

I have a found workaround.

SahilMSpower
Frequent Visitor

Hi @H_Insights ,

 

Did you get the solution for your requirement?

i need it too.

Please share the steps with us if you are able to export power BI table into the sharepoint list.

 

Thanks,

SISSPADMIN

Hi @SahilMSpower 

 

Yes, it is very easy.

 

First make sure you have created a list in SharePoint with the columns you want to export from PBI (with the correct data type).

 

  1. Open your report in Power BI desktop.
  2. Create a new page (or in any existing one) open the visualizations pane and add "Power Automate for Power BI".
  3. Add your columns and measures to PA visual (i.e.  H_Insights_1-1647977616276.png)

     

  4. Click on ellipses  and choose "Edit"  H_Insights_2-1647977926912.png, the main development page will load.

     

  5. Click on New and select "instant cloud flow" H_Insights_3-1647978021758.png. The app should sign you in or connect your to the PBI service (if not already).

     

  6.  Click on "Next Step" H_Insights_4-1647978142217.png to start building your flow.
  7. Depending on your requirement you will start the development, but let assume you want to export data based on a condition to your SP list. (I would highly suggest to do this step, it's like a filter to limit the data exported).
  8. Type "Condition" in the search box, and add that as a step. Based on your requirement you will define this filter. 
  9. Once you add a "Condition", you would notice that this step became a child of a parent step "Apply to each". that's expected.
  10. In the "Yes" condition, click on "Add Action" H_Insights_5-1647978668860.png then type in the search box "Create Item" H_Insights_6-1647978730631.png and select it.
  11. Again, the app should sign you in (if not already).

  12.  

    Select the "Site Address" and "list Name" and that should load your columns from SP. Start inserting your PBI columns into the fields. 

    H_Insights_8-1647978989021.png

 

Click Save and Apply.

 

That's about it. Take it for test.

 

H

 

 

 

Hi,

really appreaciate your solution. I ran into a follow-up problem. When I choose the needed fields in “Create Item” it instantly switches to “Apply to all”. How can I set filter on Values (columns from PBI) in Power Automate?

The flow currently copies <300 line items instead of the prefiltered ~25 of my PBI table.

 

">10d" should be filtered:

DennisT_0-1656596333808.png

 

The "Apply to each" is an expected/normal action and to filter your data you need to use a Condition (screen below).

 

I am not entirely sure what's in your ">10d" field in PBI, but I assumed it would only have a value if it's overdue >10 days? therefore the rest of the values will be blank. So basically you want to copy only rows/data that are overdue (have values).

 

Based on that assumption, please try the below and it should get you your ~25 records.

 

try the following expression in your condition (it's case sensitive and based on your column/field name '>10d'). 

 

empty(items('Apply_to_each')?['>10d'])

 

H_Insights_1-1656615602632.png

 

overall it will look like below

H_Insights_0-1656615114556.png

 

if my assumption is wrong, maybe you can share more context on the >10d field?

 

@H_Insights @DennisT @SahilMSpower 

 

Also if you’re moving a lot of Power BI data, you may be able to insert any PBI array output into SharePoint batch update & batch create actions:

https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Batch-Update-SharePoint-List-With-Extern...

Perfect - thx.

Yes the filter contains values. Needed to adapt it a little bit but works now as expected!!!😀🙌

I have set up my flow and it only export 1000 records to the Sharepoint list. I believe this is due to a PowerBI visual limit. However, I wonder if anyone else is having this problem and have come up with a different way to overcome. Perhaps exporting the first thousand and then running again on the next thousand?

Unfortunately, the export limit is true and it's an integration issue between Power Automate and Power BI.

 

However, recently Microsoft introduced ExecuteQueries support in Power Automate, which you can use to overcome the export limits. The export should be in CSV.

 

ExecuteQueries REST API restricts query results to 100,000 rows or 1,000,000 values per query (whichever is encountered first) and the number of queries to 120 per minute.

 

Happy exporting!

H_Insights_0-1657653560437.png

 

@H_Insights 

If you can export the data somewhere as a CSV, then you may be able to use this CSV parser to send the data to a list or to any other datasource.
https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191 

KRider
Super User
Super User

Hey guys, this is really amazing and super simple but I have 2 questions.

How can I put this on a schedule?

How can I check for double entries?

 

Thank you so much!


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Super User since Season 1 2023

Coach Ky -

Hello @H_Insights,

 

I have come across your solution and found that helpful in my case. Could you please share the following steps for the process you shared above? Your help would be much appreciated!

 

A

Anonymous
Not applicable

Hi, there is a limitation of 1001 rows when I use this power automate. 

Is there anyway we can increase the size of data which is moving to sharepoint list? 
Ideally we would want more data to be going into to sharepoint list. 

Thanks!

 

Hi,


did you find the solution?

I actually did! check out my Query against a Power BI step in Automate:

 

KRider_0-1690308883887.png

 

So, this will produce a JSON. From there you need to nail the Schema in order for you to output to a List.

KRider_1-1690308953908.png

Here is the Schema I used.

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "ProductionEmployees[MTID]": {
                "type": "string"
            },
            "ProductionEmployees[Name]": {
                "type": "string"
            },
            "ProductionEmployees[Job Title]": {
                "type": "string"
            },
            "ProductionEmployees[Shift]": {
                "type": "string"
            },
            "ProductionEmployees[Line]": {
                "type": "string"
            },
            "ProductionEmployees[Labour Code]": {
                "type": "string"
            },
            "ProductionEmployees[Shop]": {
                "type": "string"
            },
            "ProductionEmployees[Cost Center]": {
                "type": "string"
            },
            "ProductionEmployees[Reports To]": {
                "type": "string"
            }
        },
        "required": [
            "ProductionEmployees[MTID]",
            "ProductionEmployees[Name]",
            "ProductionEmployees[Job Title]",
            "ProductionEmployees[Shift]",
            "ProductionEmployees[Line]",
            "ProductionEmployees[Labour Code]",
            "ProductionEmployees[Shop]",
            "ProductionEmployees[Cost Center]",
            "ProductionEmployees[Reports To]"
        ]
    }
}

 

 And then this was the end result:

KRider_2-1690309006473.png

So absolutely possible. May need to brush up on JSON and queries. Definitely worth it and it cut down my flow by over an hour!

 

I hope this helps.


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Super User since Season 1 2023

Coach Ky -

Huh? 

@KRider 


For removing double entries, if the union( ) expression method isn’t sufficient because the duplicates may not match exactly, you can use something like this to get only distinct records based on set columns

https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Get-Distinct-Records/td-p/2191533

Hello @KRider

Thank you for the work around, this might solve my issue.

However, could you please explain how to write the JSON schema for a different scenario?

I am trying to copy a table from Power BI to Sharepoint List. I have copied the DAX Query from Power BI and is using the flow as shown in the attachment.

Thank you, help is deeply appreciated. 

Hey Krish,

you can attempt to generate from a sample or you can write based on your output.

definitely going to be a type array and then you want to break down your "items"

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {

remember to include your required at the end:

"required": [
            "ProductionEmployees[MTID]",
            "ProductionEmployees[Name]",

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Super User since Season 1 2023

Coach Ky -

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,664)