I'm trying to configure some buttons visibility properties around a formula, it's close but something isn't right, could do with someone advising please.
If(Value(LookUp(PurchaseOrdersUsers,Title=User().Email,Group4))>=2,"true","false")
This is working well.
I now want to change Group4 to be dynamic based on the selected item.
LookUp(PurchaseOrdersUsers,Title=User().Email,"Group"&(Gallery1.Selected.Supplier_Type))
Returns Group4 as its answer but when i copy this in place of Group4 it returns false, it should be true and visible.
If(Value(LookUp(PurchaseOrdersUsers,Title=User().Email,LookUp(PurchaseOrdersUsers,Title=User().Email,"Group"&(Gallery1.Selected.Supplier_Type))
))>=2,"true","false")
Or i though to try in place of Group4 to reference the "4" for that item in the gallery
If(Value(LookUp(PurchaseOrdersUsers,Title=User().Email,Group&Gallery1.Selected.Supplier_Type))>=2,"true","false")
this doesn't work either.
i think I'm fairly close, thanks in advance.