Greetings - I am stuck with a Filtering issue and would appreciate any advice pls. In PowerApps I am filtering a collection (from SharePoint List) by document chapters, and the sorted results are to be shown inside a combo box. Some of the documents are lengthy with chapters that do not sort logically. For these I have created a simple "ChapterSort" column with a number to determine the sort order. In my statement I am able to apply the Sort and Filter to the first two documents I have listed and separated with the 'Or' operator, my issue is that the same sort operation does not seem to be applied to the third subsequent document "Doc3". I am wondering if simplifying/altering the filter statement below might help?:-
If(
varPlanSelected = "Doc1" Or varPlanSelected = "Doc2" Or varPlanSelected = "Doc3",
Sort(
Distinct(
Filter(
colSMERtrat,
Year = ddDateList.Selected.Value
),
PlanChapHead
),
"ChapterSort",
SortOrder.Ascending
),
Sort(
Distinct(
colSMERtrat,
PlanChapHead
),
Value,
SortOrder.Ascending
)
)