Hi,
I need help to create filter query for below scenario.
I have master SP list (Master List {Title, SayYES, Main Type (Choice), Scenario (Choice), Change Type (Choice)}) and
child list (Activity list {Activity, Sort Order, Dry, chemical, Gas, Existing, New, Change Condition, Takeover, Owner Change, Name Change, Class change, Game change}). both lists connected with column ID - MID
Master list choice column items will be the child list (Number Column) fields. I need to filter the child list gallery (Activity list) based on master record item and those are 1's in child list columns. Please help with the filter query for activity list gallery.

All the highlighted column names as Number Type columns with 1 ,0 as values


On master gallery selected:
Set(VarcolName,Upper(LookUp([@'Master List'], MainType = ThisItem.'Main Type').MainType)),
ClearCollect( colData, Filter([@'Activity list '], MID=ThisItem.ID)),
Items filter for Activity list gallery
SortByColumns(
Switch (VarcolName,"GAS",
Filter (Coldata, GAS = 1),
"DRY", Filter (Coldata, DRY = 1),
"TANKER", Filter (Coldata, TANKER = 1)
), "Sort Order" ,SortOrder.Ascending)
I need to add one more switch case to Filter Scenario and Change type. to show the activities names in gallery those columns have "1's"
How can I do. Kindly advise. Thank you.