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 / Filter Gallery items w...
Power Apps
Answered

Filter Gallery items where Column contains comma seperated values

(0) ShareShare
ReportReport
Posted on by 29

Hi All,

I am trying to filter gallery where I have a column in SQL which contains values like "File,List,First Nation" etc.

So, if Flag column contains "File" it should not show data.

 

Below is the formula currently using.

 

SortByColumns(
Search(
Filter(
vw_MasterBooking,
Location = ddlHomeCourtLocation_2.Selected.Court_Name,

ddlHomeCaseType_2.Selected.Value = "All" || Hearing_Type = ddlHomeCaseType_2.Selected.Value,
Booking_date_int >= Value(
Text(
dteHomeStartDate_2.SelectedDate,
"[$-en-US]yyyymmdd"
)
) && Booking_date_int <= Value(
Text(
dteHomeEndDate_2.SelectedDate,
"[$-en-US]yyyymmdd"
)
),
ddlHomeListType_2.Selected.Value = "All" || List_Type = ddlHomeListType_2.Selected.Value


),
txtDashdboardSearch_2.Text,
"case_number"
),
"Status",
SortOrder.Ascending,
"Booking_date_int",
SortOrder.Ascending
)

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,928 Most Valuable Professional on at

    Hi @asif082 ,

    I am not totally clear here, but if you simply want to look for the string "File" anywhere in the text field Flag, then

    SortByColumns(
     Search(
     Filter(
     vw_MasterBooking,
     Location = ddlHomeCourtLocation_2.Selected.Court_Name,
     ddlHomeCaseType_2.Selected.Value = "All" || 
     Hearing_Type = ddlHomeCaseType_2.Selected.Value,
     Booking_date_int >= 
     Value(
     Text(
     dteHomeStartDate_2.SelectedDate,
     "[$-en-US]yyyymmdd"
     )
     ) && 
     Booking_date_int <= 
     Value(
     Text(
     dteHomeEndDate_2.SelectedDate,
     "[$-en-US]yyyymmdd"
     )
     ),
     ddlHomeListType_2.Selected.Value = "All" || 
     List_Type = ddlHomeListType_2.Selected.Value,
     "File" in Flag
     ),
     txtDashdboardSearch_2.Text,
     "case_number"
     ),
     "Status",
     SortOrder.Ascending,
     "Booking_date_int",
     SortOrder.Ascending
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • asif082 Profile Picture
    29 on at

    thanks @WarrenBelz  yeah this worked i have changed it to Not("File" in Flag) for my requirement. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard