Hello everyone that is eager and willing to help
I have a current scenario that I want to have the items of my combo box in a custom order
here is my formula in the on select property of my combo box
ClearCollect(
colOfficeLocCustomOrder,
Sort(
Ungroup(
Table(
{Data: Table({Value: "Any - No Preferred Office", Order:1},{Value: "Other Location", Order: 400})},
{
Data:
Distinct(Filter('DATA SOURCE',
SSL = DataCardValueSSL.Selected.Value &&
SMU = DataCardValueSMU.Selected.Value &&
Rank = DataCardValueRank.Selected.Value),
'Office Location')
}
),
"Data"
),
Value
)
);
here is my formula for the items property of my combo box:
SortByColumns(
colOfficeLocCustomOrder,
"Order",
SortOrder.Descending
)
notice here that I added another column to the any preferred office and other location because I want the any preferred no office to be located at the first of the combobox items and the other location be at the last. I was wondering if I can sort them out however those that were filtered did not have any "Order" column.
how can I achieve this?