Hi all,
Example Sharepoint List name: SPList
Example Column name: Colour
I have a simple PowerApp which asks users to apply a 'Colour' to each item, using a gallery to choose the item, and a form to select the Colour. I've got that part of the app working using a simple patch back to the data source, which is a Sharepoint List.
Now, I want to add a Radio button where users have three options:
All, Colour Assigned, or No Colour Assigned.
That way, users don't have to sift through items that have already had a Colour assigned to them, but have the option to see them and make changes if necessary.
For the 'Items' property of my Gallery, this is what I have:
Sort(
If(
Radio1.Selected.Value = "All",
Filter('SPList', IsBlank(Colour) || Not(IsBlank(Colour))),
Radio1.Selected.Value = "Colour Assigned",
Filter('SPList', Not(IsBlank(Colour))),
Radio1.Selected.Value = "No Colour Assigned",
Filter('SPList', IsBlank(Colour))
),
ID,
SortOrder.Descending
)
Essentially how I would like it work is:
Items with a value in the Colour column should show up when the Radio button value is All or Colour Assigned
Items without a value in the Colour column should show up when the Radio button value is All or No Colour Assigned
So, what am I doing wrong? Any help would be appreciated!