cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DCGN2
New Member

Gallery Filter Out Based on Excel Value

Hey all,

 

I just want to preface that I'm pretty new to power apps.

 

I'm trying to make a gallery that is searchable and filters out based on the value of a column I have in an excel sheet called "EmailConfirmSent", if this is set to "Y" I don't want it to show up in the gallery.

 

Intool Home Screen.png

 

SortByColumns(Search([@IntoolsTracking],SearchText.Text,"Project","Deliverable","DSNumber"), "Project", Ascending)

 

 

Thanks,

 

JT

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@DCGN2 

Try changing your formula to the following:

 

SortByColumns(
   Search(
     Filter([@IntoolsTracking], EmailConfirmSent<>"Y"),
     SearchText.Text, "Project", "Deliverable", "DSNumber"), 
   "Project", 
   Ascending
)

This will exclude any items that have a "Y" in the EmailConfirmSent column.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

6 REPLIES 6
RandyHayes
Super User III
Super User III

@DCGN2 

Try changing your formula to the following:

 

SortByColumns(
   Search(
     Filter([@IntoolsTracking], EmailConfirmSent<>"Y"),
     SearchText.Text, "Project", "Deliverable", "DSNumber"), 
   "Project", 
   Ascending
)

This will exclude any items that have a "Y" in the EmailConfirmSent column.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

mdevaney
Super User III
Super User III

@DCGN2 

Like this...

 

SortByColumns(
    Search(
        Filter([@IntoolsTracking], EmailConfirmSent<>"Y"),
        SearchText.Text,"Project","Deliverable","DSNumber"
    ),
    "Project",
    Ascending
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Looks like @RandyHayes and myself had exactly same response so I'm sure it will work 😎

@mdevaney  almost 😉 I saw that = to <> correction LOL

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

@RandyHayes 

Yup, I was like "wait a minute": maybe I can't just assume the poster will fill the column with "N".  Guess I have to revise, lol.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."  

@mdevaney I had that same thought...Great minds think alike!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,237)