I have an app i've been working on and you all have helped me so much. I hate to even ask for more help, but i'm stuck again.
I have a screen that has a gallery and the gallery needs to be filtered in many different ways. This is the current "Item" filter i have in place:
SortByColumns(Filter('[dbo].[vwGroups]', Switch(TerritoryRadio.Selected.Value,"Parent Only",IsBlank(ParentGroupID),"Child Only",!IsBlank(ParentGroupID),"All",ID) && Territory=TerritoryDrpDn.Selected.Territory, SearchBoxInputTerritory.Text in Name),"Name")
I get a delegation warning on the switch function. As you can see, i have 3 radio buttons. I would like to filter the gallery in 1 of 3 different ways. The filter does work, but i'm seeing some problems with it as well. One is the delegation warning. At first i didn't even worry about it. After some time, i've realized that with the switch function in, i'm missing a lot of data that i shouldn't be missing. If the "ALL" radio button is selected, i should see the entire list, but i don't. Some data is just randomly missing from the gallery. If i select child, i'll be missing random data that should be shown as a child, and the same is true if I select parent. I don't know if this is just an inherant problem with using the switch function or what. If anyone has a better way of filtering the data, and could help me, i'd be greatly appreciative.