Hi @iAM_BA ,
Firstly there is a bit of confusion here on the hierarchy, but assuming Unit follows Business (not sure where COmpany comes into this)
Your BusinessName drop-down Items
Ungroup(
Table(
{
Values: Table({Value: "All"})
},
{
Values:
Distinct(
UnitDetails,
BusinessName
)
}
),
"Values"
)
then your Unit drop-down Items
Ungroup(
Table(
{
Values: Table({Value: "All"})
},
{
Values:
Sort(
Distinct(
Filter(
UnitDetails,
BusinessName = DdBusinessName.Selected.Value
),
UnitDivisionName
),
Value
)
}
),
"Values"
)
The output of these two is .Value, so any references to these in my earlier code need to be changed from .Result to .Value.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps