Hi,
I'm Trying to use lookup formula:
LookUp( Table, Formula , Column)
The Column is an input value that Iโm getting from the user (like Iโm asking โin which column do you wish to look forโ).
The user is selecting the value from a dropdown list โ which named Week_Period
The value which the user provides is a week period, like the following: 10/25/2020 โ 10/31/2020
The required values should be a rate (a number) which matches to this specific Week_Period
I set the formula as follow,
LookUp('Rates',[formula],Week_Period.SelectedText.Value)
But the returned value Iโm getting is: 10/25/2020 โ 10/31/2020
If Iโm using a constant value in the formula like in below Iโm getting the correct value:
LookUp('Rates',[formula],โ10/25/2020 โ 10/31/2020โ)
Appreciate your help.
Thanks,
YanivLisha
I'm afraid that what you want to achieve, dinamically select a column from a list is not possible.
I think you should reconsider your solution and create a column to keep the Week_Period for each record .
@gabibalaban thank you for your reply.
I'll need to rethink my data structure in that case.
Hi @YanivLisha ,
If your week period is from a reference list, you could add two extra columns for start and finish date then do something like this
With(
{
wDates:
LookUp(
YourReferenceList,
YourPeriodField=YourDropDown.Selected.YourPeriodField
)
},
LookUp(
YourMainList,
YourDateField >= wDates.StartDateReference &&
YourDateField <= wDates.EndDateReference
)
)
Note that this query will not be Delegable.
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.
Hi @YanivLisha ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
277 | |
234 | |
84 | |
37 | |
36 |
User | Count |
---|---|
356 | |
240 | |
125 | |
72 | |
50 |