Showing results for 
Search instead for 
Did you mean: 
Kudo Collector
Kudo Collector

Lookup Not Working

I have a sharepoint list called onboarding with columns newhirename (Title), task1, task2, task3, task4.  The task columns are all yes/no columns for completed or not.


I have another list called assignedtasks with 3 single line text columns newhirename (Title), task, assignedto.  I pull this list into a collection called colAssignedTasks.


In my app I have an edit form that is connected to the onboarding list that shows the newhirename and all the tasks as cards with a yes/no toggle.  The datacardkey is the task name.  I populate the edit form by selecting a newhire in a gallery.  I want to only show the tasks that are assigend to the current logged in user.  

If(LookUp(colAssignedTasks, Title=newhirename.Text && Task=datacardkey.Text).AssignedTo=varCurrentUser,true,false)


I have tried many variations of the above formula and it doesnt work.  I have also tired to just return the AssignedTo in a label using LookUp(colAssignedTasks, Title=newhirename.Text && Task=datacardkey.Text, AssignedTo) but it doesnt return anything.


How can I hide the datacards that are not assigned to the current user?  the Lookup doesnt seem to like using the datacardkey.text as a parameter.

Any suggestions?


@Audrie-MSFT , @mrdang 


Hi @sscarcella ,

Have you solved your problem?


Yeah, you are right. The DataCard.DataField formula would return the actual field name within your SP List data source. If there is a space within the column name, it would be replaced with "_x0020_" within the internal name.


If you have solved your problem or the solution I provided above could achieve your needs, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (731)