Filter('World States', Country.'Country ID' = CountryDataCard.Selected.'Country ID')
then the explanation is that the left side of the equation is the Country lookup field in the World States entity. Since this is a lookup field, it is referencing a record from the Country entity. Since we want to compare the ID of the record to the ID of the Country selected in the dropdown, that's why he reference ID on both sides.
This should also work:
Filter('World States', Country = CountryDataCard.Selected)
For your option set, you can use the Switch function with something like this:
Switch(
OptionSet1Dropdown.Selected,
OptionSet1.ValueA,
Filter(Choices(OptionSet2), Value = 1 || Value = 2 || Value = 3),
OptionSet1.ValueB,
Filter(Choices(OptionSet2), Value = 4 || Value = 5 | | Value = 6 || Value = 7 || Value = 8 || Value = 9 || Value = 10)
)
You can find more info on this function here.
Let me know your results with the option set.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Blog | Twitter | LinkedIn | Facebook | YouTube | Email
If this is the one that worked: