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 Apps
Unanswered

Filter not working

(0) ShareShare
ReportReport
Posted on by 12

Hi Guys,

i'm quite a newbie to Power Apps, therefore im making some dumb mistakes.

It would be awesome, if you could guide me the way to success. In this particular case, I've got a problem with filters, the Datasource is a Share Point list.

Somehow it does not work...

You can find the ScreenShots attached.

 

BR

Torben

 

Bildschirmfoto 2021-09-25 um 12.38.17.png
Bildschirmfoto 2021-09-25 um 12.38.50.png
Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Can you tell us more about how you want your filter to function? Your filter appears to be attempting to show empty or blank records, plus an unusual condition of:

    BCLS776_0-1632582181947.png

    which is likely to generate an error. "Status" is a string, and ComboBox1.SelectedItems is a table. Instead, are you instead looking to filter results using a column called Status?

     

    Bryan

  • TS5 Profile Picture
    12 on at

    Hi Bryan,

     

    Indeed, I'm trying to combine two filters, "RTV-Vorgang" which is a String. And then the ComboBox. "Status" is a Column in a Sharepoint list.

     

    Is there a possibility to solve this problem?

    Torben

  • BCLS776 Profile Picture
    8,994 Moderator on at

    OK, try this:

    Search(
     Filter(
     Fehlerprotokoll;
     Status in ComboBox1.SelectedItems.Value
     );
     TextInput1.Text;
     "RTV_x002d_Nummer"
    )

    Depending on the type of column for Status, you may need to reference Status.Value instead of simply Status in this code. In addition, if your combobox's Items property was populated using the Distinct function, you may need to put in .Result instead of .Value.

     

    Hope that helps,

    Bryan

  • TS5 Profile Picture
    12 on at

    Cheers Bryan, it does work 😄

     

    - but if nothing is selected in the ComboBox and something in the TextBox is written, there are no results shown. As well if both are empty, im not able to see any gallery entries.

     

    BR

    TOrben

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @TS5 ,

     

    Not tested but you can try the below code if it helps in your requirement. 

     

    if(!IsBlank(TextInput1.Text),Search(
     if( !IsBlank(ComboBox1.SelectedItems.Value),Filter(
     Fehlerprotokoll;
     Status in ComboBox1.SelectedItems.Value
     ),Fehlerprotokoll);
     TextInput1.Text;
     "RTV_x002d_Nummer"
    ), if( !IsBlank(ComboBox1.SelectedItems.Value),Filter(
     Fehlerprotokoll;
     Status in ComboBox1.SelectedItems.Value
     ),Fehlerprotokoll))

     

    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.

  • TS5 Profile Picture
    12 on at

    it does not work 😕

    but i can not tell you why? - maybe there are some brakets missing?

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @TS5 ,

     

    What is the error message your getting ?

  • TS5 Profile Picture
    12 on at

    execution of a unknowen or undefined function

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Is below code working for you ?

    	Search(
     if( !IsBlank(ComboBox1.SelectedItems.Value),Filter(
     Fehlerprotokoll;
     Status in ComboBox1.SelectedItems.Value
     ),Fehlerprotokoll);
     TextInput1.Text;
     "RTV_x002d_Nummer"
    )
  • TS5 Profile Picture
    12 on at

    there is the same mistake... 😕 execution of a unknowen or undefined function

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard