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 / How to set a condition
Power Automate
Unanswered

How to set a condition

(0) ShareShare
ReportReport
Posted on by 4

I have a flow that uses HTTP connector to pull data from a table in Business By design and from that table i have a column that has data values in rows .. I am trying to set 3 conditions for that column that says :

 

1. i want to pull out numbers that fall within the range of 1-30 inside that column 

2. i want numbers in that column that fall within the range of 31-60

3. and finally 61-90. My usage of expressions is not so great . Can anyone help please with an expression i can use for my condition ???

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Rassyboy 

    There could other better techniques. But this one is mine. If you like it you can use it.

    In the compose I have taken a particular number.

    Sundeep_Malik_0-1663414897226.png

    Then I have used one condition, that the output of above compose is less than 31. [Or you can also do less than or equal to 30]

    Sundeep_Malik_1-1663414946850.png

    Inside If Yes:

    Sundeep_Malik_3-1663415010833.png

    Inside If No, I have give another condition, that output of compose is less than 61.

    Sundeep_Malik_4-1663415048830.png

    In your case you will have to take an apply to each loop. And pass the value of output you are getting from http.

    After that you can make 3 array variables. And when they match you can append in those arrays.

     

    I hope you like this.

     

  • Rassyboy Profile Picture
    4 on at

    My out put can not be 61 instead if i have a column A with rows of data = 5,8,89,31,63,45,25,19,71,67,29 then from the column A i want data that falls within the range of 1-30 , 31-60, and 61-90 .. 

  • Sundeep_Malik Profile Picture
    6,484 on at

    @Rassyboy 

    Just put your column in that first compose and pass it to the condition, this will automatically create an apply to each loop. I gave you an example how to do it. You just had to put your column in the 1st compose.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard