Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter problems

(0) ShareShare
ReportReport
Posted on by 58

Hello everyone,

I have a listbox in which I only want to display the email addresses of people who have also booked a specific room. The formula I use for this is:

 

Filter(Reservierungen;Reservierung=DataCardValue3.SelectedDate;Raum=DataCardValue4.Text)

 

That works too; However, there are values ​​with "No room selected". In this case, no value should be displayed in the list box. I can't manage to change the filter so that it only shows values ​​when a room is selected and nothing when "No room is selected". How do I get that???

 

Thanks in advance!

Categories:
  • Masakichi123 Profile Picture
    58 on at
    Re: Filter problems

    Hi @AndrewR1 ,

     

    I've adjusted the formula:

     

    If(Gallery1.Selected.Raum <> "Kein Raum ausgewählt";Filter(Reservierungen;Reservierung=DataCardValue3.SelectedDate;Raum=DataCardValue4.Text))

     

    It worked!

     

    Thanks a lot for your help! 🙂

     

    Greetings Masakichi

     

     

  • Verified answer
    AndrewR1 Profile Picture
    1,572 Super User 2025 Season 1 on at
    Re: Filter problems

    Hi @Masakichi123 ok it would be something like this: 

    If(RoomSelected.Value <>"No room selected",Filter(Reservierungen;Reservierung=DataCardValue3.SelectedDate;Raum=DataCardValue4.Text))

     

    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. Remember, you can accept more than one post as a solution.

     

    If the content was useful in other ways, please consider giving it Thumbs Up.

     

    Thanks
    Andrew

  • Masakichi123 Profile Picture
    58 on at
    Re: Filter problems

    Hi @AndrewR1 

     

    thanks for your message. 

    The problem is that the "empty" values ​​have the value "No room selected" because it is displayed in a different place.

     

    Greetings,

    Masakichi

  • AndrewR1 Profile Picture
    1,572 Super User 2025 Season 1 on at
    Re: Filter problems

    Hi @Masakichi123 which data card is the room selection? 

    The code would look something like this for the items property:(replace RoomSelected.Value with your data card) 

     

    If(!IsBlank(RoomSelected.Value),Filter(Reservierungen;Reservierung=DataCardValue3.SelectedDate;Raum=DataCardValue4.Text))

     

     

    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. Remember, you can accept more than one post as a solution.

     

    If the content was useful in other ways, please consider giving it Thumbs Up.

     

    Thanks
    Andrew

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard