Hi Gurus
I have
1)3 buttons . "ABBtn","PQBtn","XYBtn",
2) A search option - WellNameSearch_2
3) Gallery
When button is selected am defaulting variable varFormTab with each button value . Set(varFormTab, "ABBtn") accordingly
Question: I would like to fill the gallery with values as per each button and the filters corresponding to each button which is selected . I am getting error "If have invalid arguments "
Requesting help. Gallery items Code below.
If(
varFormTab = "ABBtn",
SortByColumns(Filter('TEST - Schedule',StartsWith(WELL_NAME,WellNameSearch_2.Text),
NAME IN ( 'A AREA', 'B AREA', 'C AREA')
),"START_DATE",Ascending),
varFormTab = "PQBtn",
SortByColumns(Filter('TEST - Schedule',StartsWith(WELL_NAME,WellNameSearch_2.Text),
NAME IN ( 'P AREA', 'Q AREA', 'R AREA' )
),"START_DATE",Ascending),
varFormTab = "XYBtn", SortByColumns(Filter('TEST - Schedule',StartsWith(WELL_NAME,WellNameSearch_2.Text)),"START_DATE",Ascending)
)