@shutterspeed100 - I think the below is what you're trying to do:
If(
CountRows(
Filter(
'Engage Classes',
Class.Value = "Choice 1"
)
) > 3,
Notify(
"Class at max",
NotificationType.Warning
)
)
If the Items property of your Dropdown control has been populated with the Class choice field (e.g. Choices(['Engage Classes'].Class), then you can use a slight modification by referencing the Dropdown control itself (Self.Selected.Value)
If(
CountRows(
Filter(
'Engage Classes',
Class.Value = Self.Selected.Value
)
) > 3,
Notify(
"Class at max",
NotificationType.Warning
)
)
Note that the CountRows function is not delegable. However, because you are already filtering your list based on a specific Choice from your Choice field, and if you can guarantee that there will not be more than 2000 rows with that criteria, you will be safe to ignore this.
If you want to hide that warning, you can use the With function. This will output the same result as the above, but with the warning hidden:
With(
{
_prefiltered_data: Filter(
'Engage Classes',
Class.Value = Self.Selected.Value
)
},
If(
CountRows(_prefiltered_data) > 3,
Notify(
"Class at max",
NotificationType.Warning
)
)
)