Hi,
I have a dropdown with items that uses the following code:
Sort(
Distinct(
Filter(
'Dataset',
Year = YearSelector.Selected.Value
),
'Week Number'
),
SortOrder.Ascending
)
In short, I only want to see week numbers in the dropdown, that are available for the selected year. This part functions as expected - I am not getting week 52 to show up for year 2024, for example.
The issue I have is that the SortOrder doesn't seem to work and I am unsure what's causing that issue. Here you see the order seems rather random:

I reckon it might be referring to another value when activating the SortOrder. What can I do to fix this?