@jakemorris
For your first question - set the Items property of your Dropdown to :
["All", "1", "2", "3", "4" , "Days"]
Set the Items property formula on your Gallery to :
SortByColumns(
Filter([@'PPE Request (Footwear)'],
(Dropdown2.Selected.Value = "All" || Shift.Value = Dropdown2.Selected.Value) &&
Status.Value = "On Order"
),
"ID",
If(SortDescending1, Descending, Ascending)
)
As for your second question, I would utilize a Gallery for the buttons.
Place a vertical gallery on the screen (let's call it galOrderTypes) and set the Items property to:
Table({disp:"Open Orders", Stat:"On Order", fill:SteelBlue},
{disp:"Closed Orders", Stat:"Closed", fill:SandyBrown},
{disp:"Out of Stock Items", Stat:"Out of Stock", fill:SkyBlue}
)
Change the Stat text to meet the values of your list Choice column values.
Add a button to the Gallery and set the Text property to : ThisItem.disp
Set the fill property of the button to ThisItem.fill
Style the button as you like.
Then, change the formula for the Gallery to:
SortByColumns(
Filter([@'PPE Request (Footwear)'],
(Dropdown2.Selected.Value = "All" || Shift.Value = Dropdown2.Selected.Value) &&
Status.Value = galOrderTypes.Selected.Stat
),
"ID",
If(SortDescending1, Descending, Ascending)
)
That should give you what you are looking for.
I hope this is helpful for you.