Hi
I have a SharePoint list [fdsfsa] with a choice [Date] column.
The choice column has 5 choice options.
In Power Apps I want to disable each choice option which have more than 49 items with that choice option.
I can disable one choice [CW4: 24th – 28th January 2022] with the code below.
But if I need to code all the combinations it's gonna be a very long formula.
Is there an easier way to do this?
If(
CountRows(
Filter(
fdsfsa,
Date.Value = "CW4: 24th – 28th January 2022"
)
) > 49,
Filter(
Choices([@fdsfsa].Date),
Value <> "CW4: 24th – 28th January 2022"
),
Choices(fdsfsa.Date)
)