web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power BI Evaulate Run ...
Power Automate
Answered

Power BI Evaulate Run Query against data set

(0) ShareShare
ReportReport
Posted on by 9

Hi there,

 

So I am running a query from Power BI to derive a single number result like the below:

 

Tristan_C_0-1691051703038.png

 

[

  {
    "[DistinctCountarticle_id]"12
  }
]
 
So my question is how do I now use the number '12' as a condition in an If Yes/No?
I want to decision if the value here is greater than zero to go to yes otherwise go to NO.
 
Thank you!
 
Tristan
 
Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

     Hi @Tristan_C 

     

    You need to write an expression in the condition action to retrieve the value of the field and check if its value is greater than zero. Pls note that expressions need to be written in the separate expression window as highlighted in the below screenshot:

     

    Expression used in condition action:

    first(outputs('Run_a_query_against_a_dataset')?['body/firstTableRows'])?['[DistinctCountarticle_id]']

    ManishSolanki_0-1691052709855.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Tristan_C Profile Picture
    9 on at

    Perfect result, thank you @ManishSolanki !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard