Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Refreshing Power BI based on KPI Value

Like (0) ShareShare
ReportReport
Posted on 28 Mar 2025 14:42:54 by
Hello, 
 
I am trying to see if the flow I am attempting to build will work. What I want to happen is that my Power BI dataset refreshed at 9am, but since we have occasional data delays, I want the flow to check one of my KPIs. If the KPI equals zero, the dataset refreshes again. I want it to refresh until the KPI is greater than zero. Is something like this possible with power automate? Here's a little more detail, if needed: 
 
The data: So the KPI I want to "read" is daily sales for yesterday. If the data is ready, it will give me a value anywhere from 1K - 12K. If there is a delay, the KPI will be 0. 
 
Current Flow: So my current flow will take the PDF of the report refreshed at 9am, attach it to an email, and send it to a specific list of people. This works 90% of the time, but if there is a delay in data at 9am, then the report will send out with just zeros for sales. 
 
Goal: I want to create a flow that will "read" the Sales KPI and have the report refresh again if Sales were 0, but stop if they are greater than zero. I keep hitting deadends with this. 
 
Thanks in advance! 
  • lbendlin Profile Picture
    7,761 Super User 2025 Season 1 on 29 Mar 2025 at 18:13:25
    Refreshing Power BI based on KPI Value
    1. Run a query against a dataset - check if the KPI  value is 0
    2. Initiate a dataset refresh request
    3. STAND BACK AND WAIT.  Dataset refresh requests are ASYNCHRONOUS!!!.  Implement  a polling (get refresh status) every five minutes or longer.
    4. Once the refresh has completed run the query again
    5. STAND BACK AND WAIT.  There is in point running these refreshes right after each other. Better have a trigger from the original data source that can tell you when it has been refreshed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,656 Most Valuable Professional

Leaderboard
Loading started