Hi all -
I'm somewhat new to PowerApps and am trying to pass a variable in a column name in a LookUp function and am currently unable to figure out how to do so. I've searched these boards (perhaps I'm using the wrong search terms) but haven't seen this issue in the boards. Surely I'm not the only one with this issue?
My SP List has columns labeled 'January Week 1,' 'January Week 2,' 'January Week 3,' 'January Week 4,' 'January Week 5,' 'February Week 1,' 'February Week 2,' 'February Week 3,' 'February Week 4,' 'February Week 5,' ...and so on.
My var is SelectedMonth, and updates based on the user's selection.
I have a label that is successfully displaying
SelectedMonth & " Week 1"
However, I'm unable to pull the data from the SP list from that column. I currently have:
LookUp('Hours Cross Charged', Name=User().FullName, 'January Week 1')
Anytime that I try to put a variable in the single quotes, under several different combinations I've tried, it gives me an error.
What way can I tell PowerApps to retrieve the data from column
'SelectedMonth & " Week 1"'?
Any help is greatly appreciated!!