{"id":38750,"date":"2024-07-31T14:55:50","date_gmt":"2024-07-31T09:25:50","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=38750"},"modified":"2024-07-31T14:55:50","modified_gmt":"2024-07-31T09:25:50","slug":"automating-tasks-in-power-bi-reports-with-power-automate-buttons","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/07\/automating-tasks-in-power-bi-reports-with-power-automate-buttons\/","title":{"rendered":"Automating Tasks in Power BI Reports with Power Automate Buttons"},"content":{"rendered":"<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone wp-image-38751 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"2800\" height=\"1600\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons.png 2800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2048x1170.png 2048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-660x377.png 660w\" sizes=\"(max-width: 2800px) 100vw, 2800px\" \/>Power BI has introduced an exciting feature that allows users to leverage the capabilities of <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-automate\/\" target=\"_blank\" rel=\"noopener\">Power Automate<\/a> through buttons within Power BI reports. This enhancement significantly improves the user experience by enabling users to perform operations directly by clicking on a button from the report interface.<\/p>\n<p style=\"text-align: justify;\">In this blog post, we&#8217;ll provide a step-by-step guide on how to utilize a Power Automate button to trigger automated tasks within a Power BI report. Here I have taken an example to demonstrate how a single click can send a new lead directly to an Excel spreadsheet.<\/p>\n<p style=\"text-align: justify;\">Let\u2019s see how we can implement this.<\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 1: Designing the Power BI Report<\/strong><\/h3>\n<p style=\"text-align: justify;\">First, add a new table visual from the Visualizations pane.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-1.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38752\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-1.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"238\" height=\"437\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 2: Adding the Lead Table using Dataverse<\/strong><\/h3>\n<p style=\"text-align: justify;\">Next, connect to Dataverse to retrieve the lead records. Ensure your report is linked to a Dataverse source where your lead information is stored.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38753 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"749\" height=\"387\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2.png 749w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-2-660x341.png 660w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 3: Creating the Power Automate Flow<\/strong><\/h3>\n<p style=\"text-align: justify;\">To add a new Power Automate button, click on &#8220;<strong>Insert<\/strong>&#8221; and then &#8220;<strong>Power Automate<\/strong>.&#8221; Click on the Power Automate visual button, click the three dots, and select &#8220;<strong>Edit<\/strong>.&#8221; This will open the Power Automate setup within the Power BI visual. Under the Power BI template, select &#8220;<strong>Update an Excel table from Power BI.<\/strong>&#8220;<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38754 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"982\" height=\"625\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3.png 982w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3-300x191.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3-768x489.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-3-660x420.png 660w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38755 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"1071\" height=\"385\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4.png 1071w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4-300x108.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4-1024x368.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4-768x276.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-4-660x237.png 660w\" sizes=\"(max-width: 1071px) 100vw, 1071px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 4: Initializing the Input Parameters in the Power Automate Button Visual<\/strong><\/h3>\n<p style=\"text-align: justify;\">Once the flow is created, we need to provide the input parameters. Select the <strong>Power Automate Button visual<\/strong> and drag and drop the fields from the lead data source (like lead, topic, first name, etc.) into the Power Automate Data section. These fields will be sent as an array to the Power Automate flow.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38756 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"1213\" height=\"463\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5.png 1213w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5-300x115.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5-1024x391.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5-768x293.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-5-660x252.png 660w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 5: Modifying the Flow<\/strong><\/h3>\n<p style=\"text-align: justify;\">Initialize an array named &#8220;<strong>varLeadID<\/strong>&#8221; in Power Automate to store the list of leads&#8217; GUIDs present in the Excel file. I have already created the Excel file (Open Lead.xlsx) in my OneDrive with all the necessary columns, i.e., Topic, First Name, Last Name, Job, Business Phone, Email, Budget, and Address. To obtain the Excel data, I utilized the <strong>&#8220;List rows present in a table&#8221;<\/strong> action.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-6.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38757 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-6.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"600\" height=\"202\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-6.png 600w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-6-300x101.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Within the &#8220;<strong>Apply to each<\/strong>&#8221; action for the Excel data, append the lead GUIDs from the Excel data to the &#8220;<strong>varLeadID<\/strong>&#8221; variable as shown below.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-7.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38758 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-7.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"639\" height=\"539\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-7.png 639w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-7-300x253.png 300w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In the <strong>&#8220;Apply to each&#8221;<\/strong> action for the Power BI data, use a Compose action to check if the lead record from Power BI is in the <strong>&#8220;varLeadID&#8221;<\/strong> variable. using the following expression:<\/p>\n<p style=\"text-align: justify;\"><strong>contains(variables(&#8216;varLeadID&#8217;), items(&#8216;On_each_Lead_records&#8217;)?[&#8216;Lead&#8217;])<\/strong><\/p>\n<p style=\"text-align: justify;\">If the lead already exists in Excel (verified by the output of the Compose action), update the corresponding row. If it does not exist, add the new lead record. To perform these actions on a designated Excel spreadsheet use the &#8220;Excel Online (Business)&#8221; connector. Specify the location of the Excel spreadsheet where these operations should be carried out.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38759 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"1097\" height=\"371\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8.png 1097w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8-300x101.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8-1024x346.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8-768x260.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-8-660x223.png 660w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-9.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38760 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-9.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"597\" height=\"367\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-9.png 597w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-9-300x184.png 300w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Step 6: Running the Flow<\/strong><\/h3>\n<p style=\"text-align: justify;\">Once the flow is created, publish the report into your workspace and trigger the flow by clicking the button. You will find the updated list of lead data in your OneDrive Excel file.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-10.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-38761 size-full\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-10.png\" alt=\"Automating Tasks in Power BI Reports with Power Automate Buttons\" width=\"641\" height=\"531\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-10.png 641w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/07\/Automating-Tasks-in-Power-BI-Reports-with-Power-Automate-Buttons-10-300x249.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\"><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">Integrating Power Automate into Power BI reports is a game-changer for automating certain processes, thus extending the possibilities we can achieve using Power BI.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-bi-data-visualisation\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-37025 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/Power-BI.gif\" alt=\"Power BI\" width=\"700\" height=\"200\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power BI has introduced an exciting feature that allows users to leverage the capabilities of Power Automate through buttons within Power BI reports. This enhancement significantly improves the user experience by enabling users to perform operations directly by clicking on a button from the report interface. In this blog post, we&#8217;ll provide a step-by-step guide\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/07\/automating-tasks-in-power-bi-reports-with-power-automate-buttons\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1985,45],"tags":[2913,2912],"class_list":["post-38750","post","type-post","status-publish","format-standard","hentry","category-power-automate","category-power-bi","tag-automate-tasks","tag-power-bi-reports"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/38750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=38750"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/38750\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=38750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=38750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=38750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}