Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I have created one view name as C_Dashboard view which is running daily for all the customers (ex - having one column customer and the values like CustA,CustB) in azure synapse pipeline. Also i have created customer specific views - CustA_Dashboard view(only shows CustA data) and CustB_Dashboard view(only shows CustB data) in azure synapse pipeline. I have created power bi report - SLA Dashboard using C_Dashboard view and applied Role level security so that CustA user will see CustA data and CustB user will see CustB data when they access SLA dashoard. i have published the SLA dashboard in workspace 1. Also i have created reports - SLA dashboard_CustA (using CustA_Dashboard view) and SLA dashboard_CustB(using CustB_Dashboard view) and published the reports in workspace 2. Now i want to create button in SLA Dashboard(published in workspace 1) so that when CustA user will login to SLA Dashboard then the report will show only CustA data as we have applied role level security. and when the CustA user will click on the button then CustA view should refresh in azure synapse pipeline and SLA dashboard_CustA dataset in workspace 2. and when the CustB user will click on the button then CustB view should refresh in azure synapse pipeline and SLA dashboard_CustB dataset in workspace 2.How to do create a button in SLA Dashboard.
Solved! Go to Solution.
Power BI buttons can't directly trigger data refreshes in Azure Synapse Pipelines. However, you can achieve a similar experience using a combination of Power Automate and buttons. Here's how:
1. Create a Power Automate Flow:
Go to Power Automate (https://flow.microsoft.com/).
Create a new flow.
Choose "Automated cloud flow" as the trigger.
Search for "Power BI" and select the trigger "When a button is pressed in a report".
Connect to your Power BI service account.
In the "Report" field, select "SLA Dashboard".
In the "Button name" field, choose a descriptive name for your button (e.g., "Refresh Customer Data").
2. Use Conditional Logic based on User Role:
- Add a "Condition" step.
- Use an expression like `userPrincipalName()` to get the logged-in user's email address.
- Check if the email address belongs to CustA or CustB using an "equals" condition.
3. Refresh Data based on User Role:
- Add two separate "Azure Synapse Analytics" actions (one for CustA and one for CustB).
- Connect to your Azure Synapse Analytics workspace.
- In the "Trigger Now" field, set it to "Yes".
- Use conditional logic from step 2 to determine which action to execute.
- If the user is CustA, call the Azure Synapse action that refreshes the "CustA_Dashboard" view.
- If the user is CustB, call the Azure Synapse action that refreshes the "CustB_Dashboard" view.
4. (Optional) Refresh Power BI Dataset (Workspace 2):
- You can add additional steps to refresh the relevant Power BI dataset in workspace 2. However, this refresh might not be instantaneous and might take some time to reflect in the report.
5. Create the Button in Power BI:
- Go back to Power BI Desktop.
- In the "Insert" tab, select "Power Automate".
- Choose the flow you created in step 1.
- Format the button and place it in your report.
If it Helps Kudos to work and Accept it as Solution.
Power BI buttons can't directly trigger data refreshes in Azure Synapse Pipelines. However, you can achieve a similar experience using a combination of Power Automate and buttons. Here's how:
1. Create a Power Automate Flow:
Go to Power Automate (https://flow.microsoft.com/).
Create a new flow.
Choose "Automated cloud flow" as the trigger.
Search for "Power BI" and select the trigger "When a button is pressed in a report".
Connect to your Power BI service account.
In the "Report" field, select "SLA Dashboard".
In the "Button name" field, choose a descriptive name for your button (e.g., "Refresh Customer Data").
2. Use Conditional Logic based on User Role:
- Add a "Condition" step.
- Use an expression like `userPrincipalName()` to get the logged-in user's email address.
- Check if the email address belongs to CustA or CustB using an "equals" condition.
3. Refresh Data based on User Role:
- Add two separate "Azure Synapse Analytics" actions (one for CustA and one for CustB).
- Connect to your Azure Synapse Analytics workspace.
- In the "Trigger Now" field, set it to "Yes".
- Use conditional logic from step 2 to determine which action to execute.
- If the user is CustA, call the Azure Synapse action that refreshes the "CustA_Dashboard" view.
- If the user is CustB, call the Azure Synapse action that refreshes the "CustB_Dashboard" view.
4. (Optional) Refresh Power BI Dataset (Workspace 2):
- You can add additional steps to refresh the relevant Power BI dataset in workspace 2. However, this refresh might not be instantaneous and might take some time to reflect in the report.
5. Create the Button in Power BI:
- Go back to Power BI Desktop.
- In the "Insert" tab, select "Power Automate".
- Choose the flow you created in step 1.
- Format the button and place it in your report.
If it Helps Kudos to work and Accept it as Solution.
Hi @cpooja ,To achieve the functionality you described, you can create a button in the SLA Dashboard (published in Workspace 1) that triggers a refresh in Azure Synapse and updates the corresponding dataset in Power BI Workspace 2. Here's a step-by-step guide:
Step 1: Create a Custom Button in Power BI
Step 2: Set Up Azure Synapse Pipeline Trigger
Step 3: Automate Dataset Refresh in Power BI
Step 4: Connect Button to Logic App or Flow
Step 5: Test the Button
I hope the provided solution works for you
If I have resolved your question, please consider marking my post as a solution. Thank you!
A kudos is always appreciated—it helps acknowledge the effort and keeps the community thriving.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
77 | |
59 | |
36 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
48 | |
41 |