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

Community site session details

Session Id : 6aHr700PAqST5kMv35sM0W
Power Apps - Building Power Apps
Answered

Filter fail

Like (0) ShareShare
ReportReport
Posted on 17 Dec 2021 19:34:29 by 30

Hi guys,

 

I used a couple of youtube movies to filter my gallery. I tought everyting was working but, it if i click on a item in my gallery. It always opens the newest one instead of the one i clicked. if i remove my filters on the gallery it works well..

I hope someone can help me with this.

 

 

 

 

 

SortByColumns(
 Filter(
 SPLIST1;
 StartsWith(
 Datum;
 TextSearchBox12_1.Text
 ) && IsBlank(ComboBox2.SelectedItems.Value) || IsEmpty(ComboBox2.SelectedItems) || Discipline in ComboBox2.SelectedItems;
 Datum >= dpFrom.SelectedDate && Datum <= dpTo.SelectedDate;
 If(
 ShowEigen.Value = true;
 Melder = User().FullName;
 ShowEigen.Value = false
 )
 );
 "Datum";
 Descending;
 "ID";
 Descending
)

 

 

 

 

 

It works with my Sharepoint list: SPLIST1

I have a search textbox that search on the column Datum (date).

Then i filter on a multiple selectbox (dropdown menu multiple selected)

And i filter with 2 date pickers.

The last one is a checkbox, if checked (by default) it only shows your own items (on the 365 office name).

 

The Filters are working but only opens the newest item unfortenetly.

 

I have the same question (0)
  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on 20 Dec 2021 at 11:06:40
    Re: Filter fail

    Excellent i am happy my suggestion was able to help 🙂 . Please could you click accept it as the solution to help others who are looking for solutions to similar problems 🙂

  • JeffreyP Profile Picture
    30 on 20 Dec 2021 at 10:43:10
    Re: Filter fail

    Yes i changed the name correctly 🙂

     

    The OnSelect on the Gallery is now:

    Set(VarGallWal1Selected;ThisItem);;
    Navigate(ReadWal1; ScreenTransition.None)

     

    Item in the Form is set to VarGallWal1Selected

    This works fine for me 🙂 thankyou!

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on 20 Dec 2021 at 02:09:31
    Re: Filter fail

    Also does anything refresh or reset the gallery's .selected value. one way to see this is change the onselect for this gallery to Set(VarGallWal1Selected,ThisItem) and make the lookup:

    LookUp(
     SPLIST1,
     ID = VarGallWal1Selected.ID
    )

    also please don't forget to adjust commas to semi colons for your local language settings 🙂

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on 20 Dec 2021 at 02:05:32
    Re: Filter fail

    Just checking you did try it with the correct gallery name right?:

    LookUp(
     SPLIST1,
     ID = GalleryWal1.Selected.ID
    )
  • JeffreyP Profile Picture
    30 on 19 Dec 2021 at 23:35:33
    Re: Filter fail

    Unfortenetly, still showing the last submitted one..

    If i remove the filter, everything works well..

    I dont know what is wrong in the filter

  • WarrenBelz Profile Picture
    149,738 Most Valuable Professional on 18 Dec 2021 at 20:23:12
    Re: Filter fail

    @JeffreyP ,

    Try

    LookUp(
     SPLIST1,
     ID = Gallery1.Selected.ID
    )

     

    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.

    Visit my blog Practical Power Apps

  • JeffreyP Profile Picture
    30 on 18 Dec 2021 at 10:07:00
    Re: Filter fail

    GalleryWal1.Selected

    Thats the Gallery where items is the above Filter

    Schermafbeelding 2021-12-18 om 11.03.42.pngSchermafbeelding 2021-12-18 om 11.04.02.png

  • WarrenBelz Profile Picture
    149,738 Most Valuable Professional on 17 Dec 2021 at 20:29:44
    Re: Filter fail

    Hi @JeffreyP ,

    What is the Item of the Form that is being opened ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete