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 and Datepicker
Power Apps
Answered

Filter and Datepicker

(0) ShareShare
ReportReport
Posted on by 104

hello, I have a filter from the date (from, to); a filter on customer name and 1 filter on tour.

Now I would like to combine all 3 filters

anyone have an idea?

If(TextSearchBox_Essensplan_edit_Kunde.Text <> ""; //1. if wenn kunde nicht leer
Filter(Essenplan; StartsWith(Kunde.Value; TextSearchBox_Essensplan_edit_Kunde.Text) ); //1. If DANN -> filtere nach Kunde
If(TextSearchBox_Essensplan_edit_Tour.Text <> ""; //1. if SONST -> else if prüfung wenn tour nicht leer
Filter(Essenplan; StartsWith('Kunde:Tour'.Value; TextSearchBox_Essensplan_edit_Tour.Text) ); //2. else if DANN -> filter auf tour wenn tour net leer
Filter( //sonst (2. else if) filtere allgemein auf datum....
Essenplan; Datum >= DatePicker_Essensplan_Startdatum.SelectedDate; Datum <= DatePicker_Essensplan_Enddatum.SelectedDate)) //1. if SONST
) //end basic 1. if

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @testaccPA ,

    Do you want to filter based on 2 textinputs and 2 datepickers?

    Could you tell me what are the 2 datepickers' DefaultDate?

    I assue that their DefaultDate are both empty, so you also need to justify this.

    If so, please try this formula:

    Filter(Essenplan;
    If(IsBlank(TextSearchBox_Essensplan_edit_Kunde.Text);true;StartsWith(Kunde;TextSearchBox_Essensplan_edit_Kunde.Text));
    If(IsBlank(TextSearchBox_Essensplan_edit_Tour.Text);true;StartsWith('Kunde:Tour'; TextSearchBox_Essensplan_edit_Tour.Text));
    If(IsBlank(DatePicker_Essensplan_Startdatum.SelectedDate);true;Datum >= DatePicker_Essensplan_Startdatum.SelectedDate);
    If(IsBlank(DatePicker_Essensplan_Enddatum.SelectedDate);true;Datum <= DatePicker_Essensplan_Enddatum.SelectedDate)
    )
    //if the textinput or datepicker is empty, then the confition is true

     

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard