Issue-1: Custom sort error
Following code generates error: The sort order is incorrect for the type of expression in "ShiftEntry"
Sharepoint list's ShiftEntry column type: Single line text.
PowerApps ShiftEntry field type: Allowed values with items ["A","B","C","G"]
I cannot use Ascending or Descending with this as it will not show desired shift sort order.
Issue-2: Sharepoint list Delegation problem
I am aware that filter formula does not support delegation by Date column of List.
Following code warns on delegation for DateEntry >= St_From && DateEntry <= St_To
Is there any solution to avoid delegation issue in the mentioned code?
DateEntry column type: Date only
SortByColumns(
Filter(
[@DailyReportList2],
DateEntry >= St_From && DateEntry <= St_To,
StartsWith(
MachineEntry,
TextSearchBox1.Text
),
StartsWith(
DepartmentEntry,
ViewAllDept
),
ShopEntry in If(
IsEmpty(St_Shop),
FilteredView.ViewShop.Value,
St_Shop.Value
),
DepartmentEntry in If(
IsEmpty(St_Dept),
FilteredView.ViewDept.Value,
St_Dept.Value
),
ShiftEntry in If(
IsEmpty(St_Shift),
FilteredView.ViewShift.Value,
St_Shift.Value
)
),
"DateEntry",
If(
SortDescending1,
Ascending,
Descending
),
"ShiftEntry",
["C","B","G","A"],
"ID",
Descending
)
Need help !