I am new to Power Apps but working on a SP List (Safety Good Catch Items). As shown below, I have created a Filter Container and want to Filter records on Status OR AssignedTo (I can see that I will need additional Filters using AND in the future). Regardless, I have the following and am trying to see...
1. All records OR
2. Records with Status = Selected Radio Button OR
3. AssignedTo = Selected Dropdown result
Filter('Safety Good Catch Items',Status.Value = Radio2.Selected.Value || AssignedTo.Value = DrpdwnAssign.Selected.Result || Radio2.Selected.Value=Blank())
I am not receiving the results I expect. If I select an AssignedTo (with no Status choice), ALL records are still displayed. I assume it is in my OR logic. Again, another filter will soon include Status = In Process by Assigned To.
Please consider changing your Formula to the following:
Filter('Safety Good Catch Items',
Status.Value = Radio2.Selected.Value || IsBlank(Radio2.Selected.Value) ||
AssignedTo.Value = DrpdwnAssign.Selected.Result || IsBlank(DrpdwnAssign.Selected.Result)
)
You just need to account for the blank selection.
I hope this is helpful for you.
@RandyHayes Thanks for the response. My only question is the default value for the AssignedTo is --- (not Blank). Does that make the final OR AssignedTo.Value = ---?
Yes...I was wondering about that (from your picture).
So change the formula to:
Filter('Safety Good Catch Items',
Status.Value = Radio2.Selected.Value || IsBlank(Radio2.Selected.Value) ||
AssignedTo.Value = DrpdwnAssign.Selected.Result || DrpdwnAssign.Selected.Result="---"
)
@RandyHayes Again, thanks for the response and suggestions. I'm still having an issue when the AssignedTo is the Filter selection. Regardless of the AssignedTo selection, there is no change change in the records displayed.
I currently have...
Filter('Safety Good Catch Items',
Status.Value = Radio2.Selected.Value || IsBlank(Radio2.Selected.Value) ||
AssignedTo.Value = DrpdwnAssign.Selected.Result || DrpdwnAssign.Selected.Result="---"
)
The AssignedTo Choices (from SP) are...
---
Name 1
Name 2
etc.
User | Count |
---|---|
261 | |
110 | |
89 | |
53 | |
44 |