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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Evaluate if Row Met co...
Power Apps
Unanswered

Evaluate if Row Met condition

(0) ShareShare
ReportReport
Posted on by 18

Hi all,
I am trying to evaluate a true/false for each row in gallery whether some conditions is met.
If met, the return text value would be true else false.

My formula is as follows:

Control: Label
Item: Text

Formula:
If(
 IsEmpty(
 Filter(
 'Booking List',
 DeskText = ThisItem.DeskText && 'Check Out From' >= ThisItem.'Check Out From' && 'Check Out To' >= ThisItem.'Check Out To'
 )
 ),
 true,
 false
)

 
However the error message indicate, the formula uses scope, which is not presently supported for evaluation.

Is there workaround this?


Regards

Hidayat

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Yatz,

    Could you please tell me that if the Label displays correct string?

     

    I think your formula is correct, if the Label display your expected string, please just ignore this message, which is not an error message.

     

    Or, you could modify as below:

    If(
     CountRows(
     Filter(
     'Booking List',
     DeskText = ThisItem.DeskText && 'Check Out From' >= ThisItem.'Check Out From' && 'Check Out To' >= ThisItem.'Check Out To'
     )
     )<=0,
     true,
     false
    )
  • HM-18111627-0 Profile Picture
    18 on at

    Hi Qi,

    Unfortunately, the output does not display the expected outcome.
    The formula returns false for every row in the gallery, even though there are some rows that match the requirement.

    Hidayat



  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Yatz ,

     

    You can try the following code:

    If(
     CountRows(
     Filter(
     'Booking List',
     DeskText = ThisItem.DeskText && 'Check Out From' >= ThisItem.'Check Out From' && 'Check Out To' >= ThisItem.'Check Out To'
     )
     ) = 0,
     true,
     false
    )

     

    Do check out if the conditions and individual values are getting populated

     

    Hope this helps

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Yatz,

    I think the logic behind you formula does return the same result using your if statement.

     

    Here is the thing, the formula you provided will compare each row with all the records from your data source, so the result returned by the Filter() fucntion always not empty.

    The reason is that there is always at least 1 record meet the condition.

     

    The above is based on your formula.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard