The following works fine to add text to a label in a gallery:
LookUp(RemoteTable,proposal_no=ThisItem.proposal_no,name)
But as soon as I nest that within a Sort function, I can't use the ThisItem anymore (it gets the red squiggle). This is what I want to do:
Sort(If(ActiveToggle.Value=true,Filter(collection,date<Today() && Today() <date),collection),LookUp(RemoteTable,proposal_no=ThisItem.proposal_no,name))
If I just use proposal_no=proposal_no, it returns the same result for every record and doesn't sort right.
Any help?
Thanks!

Report
All responses (
Answers (