Hello All,
I am trying sort and filter multiple columns in a gallery. I am using the following formula:
SortByColumns(
Filter(
colDatabase,
StartsWith(
'ID',
txtID.Text
) && (Field1 = drpField1.Selected.Value || IsBlank(drpField1.Selected.Value)) && ("Field2_x002f_Machine" = 'drpFieldMachine2'.Selected.Value || IsBlank('drpFieldMachine2'.Selected.Value)) && (OperationStatus = drpOperationStatus.Selected.Value) && IsBlank(drpOperationStatus.Selected.Value) && (Created >= dteStart.SelectedDate || IsBlank(dteStart.SelectedDate)) && (Created <= dteEnd.SelectedDate || IsBlank(dteEnd.SelectedDate))
),
varSortColumn,
varSortDirection
)
When I try and use the formula I get an error on column OperationStatus "The specified column ("Column Name") does not exist or is an invalid column type"
I had the same issue with column "Field Machine 2" but I resolved this by using the Sharepoint list 'system' name
"Field2_x002f_Machine"
I have tried using the system name for "OperationStatus" but this does not help. I have removed and re-added the data source and deleted and re-created the column to no avail.
Any help much appreciated