cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mehul_sompura
Helper I
Helper I

filter through status button and no delgation

I am tring to to select filter my search with the status of request (which is submitted,approved,declined). I do not want them to mulpile select the buttons. You can only use one at a time. Also have a clear button which removes the filter and shows all itme. On top of this it gices a delegation waring if i use if loop in my filter equation so what do i do to not have that. 

 

P.S. in my filter equation in use login email to show the request depending on securty level of that person. 

This is my filter eqaution :

If(
IsMatch(
admins.users,
User().Email,
Contains
) = true && !myview,
SortByColumns(
Filter(
'Out of Office',
Or(
StartsWith(
Title,
TextSearchBox1.Text
),
StartsWith(
Department.Value,
TextSearchBox1.Text
)
),
If(
Pending = false && Approved = false && Declined = false && Cancelled = false,
true,
If(
Pending,
'Status of Request'.Value = "Pending",
false
) || If(
Approved,
'Status of Request'.Value = "Approved",
false
) || If(
Declined,
'Status of Request'.Value = "Declined",
false
) || If(
Cancelled,
'Status of Request'.Value = "Cancelled",
false
)
)
),
"Title",
If(
SortDescending1,
Descending,
Ascending
)
),
SortByColumns(
Filter(
'Out of Office',
Or(
StartsWith(
Title,
TextSearchBox1.Text
),
StartsWith(
Department.Value,
TextSearchBox1.Text
)
),
If(
Manager.Email = User().Email && !myview,
Manager.DisplayName = User().FullName,
Requester.DisplayName = User().FullName
),
If(
Pending = false && Approved = false && Declined = false && Cancelled = false,
true,
If(
Pending,
'Status of Request'.Value = "Pending",
false
) || If(
Approved,
'Status of Request'.Value = "Approved",
false
) || If(
Declined,
'Status of Request'.Value = "Declined",
false
) || If(
Cancelled,
'Status of Request'.Value = "Cancelled",
false
)
)
),
"Title",
If(
SortDescending1,
Descending,
Ascending
)
)
)

 

Annotation 2019-10-28 135030.png

1 REPLY 1
Anonymous
Not applicable

Bumping for visibility 

 

@Anonymous 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (80,186)