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
Answered

Stacking filters

(0) ShareShare
ReportReport
Posted on by 12

Hi, I am new in Power Apps, and I have weird problem.  I have code for gallery and few filters but how to add to this filter for actual user?  I tried to mix it up but with no result.

I have:

 

Set(varUserEmail, User().Email);


Filter(
Filter('SharePoint List', 'Created By'.Email = var_UserProfile),
Nazwa_Search.Text in 'Column 2')


Filter([@'SharePoint List'],
And(
Or(
IsBlank(CB_KB_Filter.SelectedItems),
IsEmpty(CB_KB_Filter.SelectedItems),
'Column 1' in CB_KB_Filter.SelectedItems),
Name_Search.Text in 'Column 2'),
And (
Or(
IsBlank(StartDateDatePickerMB.SelectedDate),

'Data' >= StartDateDatePickerMB.SelectedDate && 'Data'<= EndDateDatePickerMB.SelectedDate)
))

 

 

Thanks for any help,

@Hokus

Categories:
I have the same question (0)
  • timl Profile Picture
    37,152 Super User 2026 Season 1 on at

    Hi @Hokus 

    I'm not sure what you're trying to do but if you want to combine the conditions in the calls to Filter, the syntax would look like this:

    Filter(
     [@'SharePoint List'],
     'Created By'.Email = var_UserProfile),
     Nazwa_Search.Text in 'Column 2',
     And(
     Or(
     IsBlank(CB_KB_Filter.SelectedItems),
     IsEmpty(CB_KB_Filter.SelectedItems),
     'Column 1' in CB_KB_Filter.SelectedItems
     ),
     Name_Search.Text in 'Column 2'
     ),
     And (
     Or(
     IsBlank(StartDateDatePickerMB.SelectedDate),
     'Data' >= StartDateDatePickerMB.SelectedDate && 'Data'<= EndDateDatePickerMB.SelectedDate
     )
     )
    )
  • Hokus Profile Picture
    12 on at

    Hi @timl,

    Thank you for your response, but your code also isnt working.

    First I wanna filter gallery that it show only files Created By on going user of the app, then to filter further with textinput, dates and combobox.

  • Verified answer
    Hokus Profile Picture
    12 on at

    @timl I did it 😀,

    this is working:

    Filter(
     Filter('SharePoint List', 'Created By'.Email = var_UserProfile),
    And(
     Or(
     IsBlank(CB_KB_Filter.SelectedItems),
     IsEmpty(CB_KB_Filter.SelectedItems),
     'Column 2' in CB_KB_Filter.SelectedItems),
     Name_Search.Text in 'Column 1'),
     And(
     Or(
     IsBlank(StartDateDatePickerMB.SelectedDate),
     
     'Data' >= StartDateDatePickerMB.SelectedDate && 'Data'<= EndDateDatePickerMB.SelectedDate)
    ))

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard