I have a gallery filtered by current user, text box (search), dropdown list with values from a sharepoint column, and date picker.
I am not sure how to plug all filters so that by default shows all data for current user and either search or dropdown or date picker date.
Can you please help?
Sort(Filter('Travel Requests List','Primary Contact' = varPrimaryContact.Email Or 'Secondary Contact' = varSecondaryContact.Email , StartsWith('Employee Name', TextInput1.Text ) Or 'Ship Code' = Dropdown1.Selected.Result ) ,'Date of Travel',Ascending)
Solved! Go to Solution.
Hi @andygp25 ,
Sorry - missed the date picker - a bit more manipulation required here
Sort(
Filter(
'Travel Requests List',
(
'Primary Contact' = varPrimaryContact.Email ||
'Secondary Contact' = varSecondaryContact.Email
),
StartsWith('Employee Name', TextInput1.Text),
'Ship Code' = Dropdown1.Selected.Result,
DateDiff(
YourDatePickerName.SelectedDate,
'Date of Travel',
Days
)=0
),
'Date of Travel',
Ascending
)
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.
Hi @andygp25 ,
Depends a bit on what and/or combinations you want, but the below should take a list matching either of the two emails and then filter by a combination of the other two controls.
Sort(
Filter(
'Travel Requests List',
(
'Primary Contact' = varPrimaryContact.Email ||
'Secondary Contact' = varSecondaryContact.Email
),
StartsWith('Employee Name', TextInput1.Text),
'Ship Code' = Dropdown1.Selected.Result
),
'Date of Travel',
Ascending
)
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.
How do I add a datepicker value in the StartsWith?
Hi @andygp25 ,
Sorry - missed the date picker - a bit more manipulation required here
Sort(
Filter(
'Travel Requests List',
(
'Primary Contact' = varPrimaryContact.Email ||
'Secondary Contact' = varSecondaryContact.Email
),
StartsWith('Employee Name', TextInput1.Text),
'Ship Code' = Dropdown1.Selected.Result,
DateDiff(
YourDatePickerName.SelectedDate,
'Date of Travel',
Days
)=0
),
'Date of Travel',
Ascending
)
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.
User | Count |
---|---|
118 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
141 | |
109 | |
83 |