
Announcements
It sounds like you're working with PowerFX in a Power Apps environment and trying to conditionally display a button based on a series of lookups. Let's break down the problem and see how we can chain these lookups to achieve the desired result.
TRUE.To achieve this, you need to chain the lookups and check the boolean value. PowerFX allows you to perform nested lookups, but it can get tricky. Here's a step-by-step approach:
Lookup Consultant's Legal Entity:
Lookup(Consultants, 'Full Name' = Self.Selected.Item.Consultant.'Full Name').LegalEntity
2. Lookup Legal Entity's Country:
Lookup(LegalEntities, 'Legal Entity' = Lookup(Consultants, 'Full Name' = Self.Selected.Item.Consultant.'Full Name').LegalEntity).Country
3. Check Country's Visible Boolean:Lookup(Countries, 'Country' = Lookup(LegalEntities, 'Legal Entity' = Lookup(Consultants, 'Full Name' = Self.Selected.Item.Consultant.'Full Name').LegalEntity).Country).Visible
You can combine these lookups into a single formula to check the Visible boolean and conditionally show the button:
If(
Lookup(Countries, 'Country' = Lookup(LegalEntities, 'Legal Entity' = Lookup(Consultants, 'Full Name' = Self.Selected.Item.Consultant.'Full Name').LegalEntity).Country).Visible,
true,
false
)
Visible boolean value in the Country entity.If the response is helpful to you, a like or mark as the correct solution. thank you so much!