Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

'Run a query against a dataset' returns wrong output. Need to apply filter first?

(0) ShareShare
ReportReport
Posted on by 1

I have a flow that includes a query against a Power BI dataset followed by a conditional switch that sends an email based on the output of the query. 

Power Automate - wrong output.PNG

The output I expect to see is "good" as that is the result of the field in the report. But the output I'm getting in Power Automate is "rev". I believe this is because the output of the query does not include the date filter. When I apply the date filter, my output is "good", when no filter is applied, it is "rev". 

Do I need to first apply a filter in my flow to match the filter that exists in my report? If so, how do I do that?

Power Automate - wrong output2.PNGPower Automate - wrong output3.PNG

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: 'Run a query against a dataset' returns wrong output. Need to apply filter first?

    The Power Automate Visual in Power BI behaves like any other visual.  You decide if it is impacted by the data model and/or by user actions resulting in filter context modifications.   It cannot magically infer the current rendering status of other visuals on the page (and it doesn't need to as it is independent).

     

    So in your case the date filter need be applied either to the Power Automate visual or - better - added to the Page Level filters.

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,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,948 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow