Forum Discussion

jr2314's avatar
jr2314
Frequent Visitor
4 months ago
Solved

Power Automate Refresh Button with PowerBI Report

Hello,   I have a PowerBI paginated report that's dataset is coming from a PowerBI semantic model via Blank Query (M Code). I've provided a Power Automate button for users that can refresh the data...
  • grazitti_sapna's avatar
    4 months ago

    Hi jr2314,

    yes, multiple users hitting your Power Automate button at the same time can cause issues—but splitting users across two workspaces is not the right fix and won’t reliably prevent it as the source remain the same.

     

    To Fix this, you can create a control table in a shared capacity (Sharepoint etc.)

    Isrefreshing = True/False

     

    1. Then create a flow logic like if isrefreshing is true then throw a msg. to user to try after some time and if it's false then run the refresh after the refresh is finished set isrefreshing back to false.

    2. instead of user to hit refresh again you can create a queue for the users, and again use above login but this time instead of throwing an error, they see a msg. that the request is in queue, as soon as the first task is over (isrefreshing = false) then the second task is performed

     

    this will avoid cocurrent refreshed and overload on the datasource/API.

    better performance

    no refresh failures

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
    🔗 Curious to explore more? [Discover here].
    Let’s keep building smarter solutions together!

  • grazitti_sapna's avatar
    grazitti_sapna
    4 months ago

    Hi jr2314,

     

    You can add wait for 30 seconds (Delay = 30 seconds) and to flag check Status = Completed OR Failed in between the flow and only move forward once you have any of these status and show user a message accordingly