I have a gallery of devices (laptops, desktop PCs, etc.) that I want to present to users. There are two criteria that they may use (independently or together) to filter the gallery: Platform (Mac OS X or Windows) and Type (All-in-One, Desktop or Laptop/Tablet). Each criteria has a radio button that by default is blank but may be set to any one of the available choices.
Here is the current formula I'm using:
SortByColumns(Filter(colCurrentDevices,radioPlatform.Selected.Value in 'Operating System'.Value && radioDevType.Selected.Value in 'Device Type'.Value),"DeviceBaseCost",Ascending,"Title",Ascending)
I know that I need some kind of nesting logic in there to adjust what's displayed based on whether they've made a choice in the radio buttons or not, but I'm just spinning my wheels trying to figure it out.
Basically, with the radio buttons blank (no value selected on either), I want to display all of the devices. With one or the other, or both selected, the view should narrow down to only those devices meeting the selected criteria.