Hi @Drrickryp , thanks for responding!
Here is the code for the first gallery which takes the data from the Sharepoint list and filters it down based on a Radio button and/or Person ComboBox depending on if it's blank or has a selection. I've shortened out some of the code as a bunch of it is mostly duplicated with slightly different filtering depending on the radio button value.
If(
Radio1.Selected.Value = "Complete" && IsBlank(ComboBox1),
SortByColumns(
GroupBy(
Filter(
Clothing_Order_List,
OrderStatus = "Filled"
),
"OrderID",
"GroupedOrders"
),
"OrderID",
Descending
),
Radio1.Selected.Value = "Complete",
SortByColumns(
GroupBy(
Filter(
Clothing_Order_List,
OrderStatus = "Filled",
Name.DisplayName = ComboBox1.Selected.DisplayName
),
"OrderID",
"OrderStatus",
"GroupedOrders"
),
"OrderID",
Descending
)
)
The second gallery also completes filtering based on the Radio Button selection but also uses a variable which is updated when the first gallery item is selected.
If(
Radio1.Selected.Value = "All",
Filter(
Clothing_Order_List,
Name.DisplayName = varGalleryThisItem.Name.DisplayName
),
Radio1.Selected.Value = "Active",
Filter(
Clothing_Order_List,
Name.DisplayName = varGalleryThisItem.Name.DisplayName,
Or(
OrderStatus = "Submitted",
OrderStatus = "Received",
OrderStatus = "Ordered",
OrderStatus = "Partially Filled"
)
),
Radio1.Selected.Value = "Complete",
Filter(
Clothing_Order_List,
Name.DisplayName = varGalleryThisItem.Name.DisplayName,
OrderStatus = "Filled"
)
).
I'm not sure if it's doable but I would like the first gallery to only show the orders in the "Completed" section that have all of their grouped items marked as complete. An order may have four items with only one of them being filled so the order should still remain active. I've added a screenshot that shows the layout, you can see that the selected active order has 4 items, but only 2 are showing in the second gallery as two of the items have dropped off the screen as they've been filled.
Thanks!
Shawn