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 Apps / FILTER function: what ...
Power Apps
Answered

FILTER function: what operators to use with text fields

(0) ShareShare
ReportReport
Posted on by 55
Data is in Dataverse:
In a Gallery, I am trying to write a simple FILTER() expression that specifies certain data. I am able to specify:
"Probability" (a number field), and
Private (a Yes/No field)
...but I am having trouble filtering for a filter for Classroom, which is a TEXT field:
Classroom = "ON",
The "=" symbol gets a red squiggle, showing it is not accepted/recognized.
I have tried "eq" instead of the equals symbol but with the same result.
I (rather randomly) tried "is" and several similar variations, with no luck.
QUESTION: what is the syntax for specifying particular text in a text field for a FILTER expression?
See the third line below.  The expression works fine without this Classroom bit added.
(I tried to attach an image to show the red squiggle, but this page would not accept it.)

Filter('Class Events', SearchInputBox.Text in 'Event Description',
'Instructor Remote (Class Events)'.No,
Probability > 0 , Classroom = "ON",
'Private (Class Events)'.Yes,
'Start Date' > DateAdd(Today(),-30,TimeUnit.Days),
'Start Date' < DateAdd(Today(),90,TimeUnit.Days))
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    the issue seems to be with the Classroom field, which is a Text field. - Classroom = "ON"
     
    here is the complete filter block
    Filter(
        'Class Events',
        SearchInputBox.Text in 'Event Description',
        'Instructor Remote (Class Events)'.No,
        Probability > 0,
        Classroom = "ON",
        'Private (Class Events)'.Yes,
        'Start Date' > DateAdd(Today(), -30, TimeUnit.Days),
        'Start Date' < DateAdd(Today(), 90, TimeUnit.Days)
    )
     
  • WillBeeSea Profile Picture
    55 on at
    The Classroom field is just a text field, with a variety of classroom names in it.  How to I specify a particular classroom?
  • Verified answer
    WillBeeSea Profile Picture
    55 on at
    OH!  For anyone else who might have this question, here is the answer:
    It turns out that the Classroom field in Class Events was a Lookup field, so "ON" was not in that table.  I needed to follow the Lookup/relationship to the source table by doing the following:
     
    Classroom.Name="ON",
     
    Classroom is the source table and Name is the actual column with the names of classrooms.
     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard