cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Lookup distinct item

Hi, 

 

Hi i want to lookup an item in a distinct gallery. The code that i use doesnt work... Does someone know how to fix it? 

 

I want to lookup a date that matches with the gallery result ("Title" ) (Thisitem.Result)

So if the gallery say: Test 1(" project" )  i want to display the date ("datumretour") thats in the same column of the sp list in the gallery. 

sharepoint.png

 

Gallery: 

gallery.png

Code Gallery: 

 

Distinct(SortByColumns(Filter([@Uitgeleend]; StartsWith(project; TextSearchBox1.Text)); "project";If(SortDescending1; Descending; Ascending));project)

 

 

Code label in gallery (does not work):

 

LookUp(Uitgeleend;"project"=ThisItem.Result;"datumretour")

 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

It may be a language difference in how formulas are written, but I don't think you should have the parts of your formula in double quotes (").

 

LookUp formula should be:

LookUp(Uitgeleend;Uitgeleend[@project]=ThisItem.Result;datumretour)

View solution in original post

2 REPLIES 2
Super User II
Super User II

It may be a language difference in how formulas are written, but I don't think you should have the parts of your formula in double quotes (").

 

LookUp formula should be:

LookUp(Uitgeleend;Uitgeleend[@project]=ThisItem.Result;datumretour)

View solution in original post

thanks, it works! 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (22,552)