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

Display List Based on Filtered Column in SharePoint List

Urgent!!

Hi All. This is a very simple question but I dont know why it does not function.

I have 2 tabs (V1-C and V1-D) on my screen like this:

_kikilalaaa_0-1612596134745.png

When user clicked on V1-C, user will get to see data from V1C only. So, This is what i did:

1. Table Tab (Onselect) : Set variable.

Select(Parent);
UpdateContext({varVillage:"V1"}); UpdateContext({varBlock:"C"})

 

2. Gallery. Items

LookUp('Student Accommodation',And('Village Name'=varVillage,'Village Block' = varBlock),Level)

This means that it will look up SPList named Student Accommodation where Village Name = V1 and Block = C.

And then it will display Level available for that village and block.

 

But, I have received these errors:

_kikilalaaa_1-1612596658690.png_kikilalaaa_2-1612596773654.png

Please help!

1 ACCEPTED SOLUTION

Accepted Solutions
ganeshsanap
Super User
Super User

@_kikilalaaa 

 

Use below formula to set items property of Gallery if you want to show first record that matches the conditions:

 

LookUp('Student Accommodation', And('Village Name' = varVillage, 'Village Block' = varBlock))

 

Use below formula to set items property of Gallery if you want to show all records that matches the conditions:

 

Filter('Student Accommodation', And('Village Name' = varVillage, 'Village Block' = varBlock))

 

 Then you need to set the Text property of label control to:

 

ThisItem.Level

 


Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

View solution in original post

1 REPLY 1
ganeshsanap
Super User
Super User

@_kikilalaaa 

 

Use below formula to set items property of Gallery if you want to show first record that matches the conditions:

 

LookUp('Student Accommodation', And('Village Name' = varVillage, 'Village Block' = varBlock))

 

Use below formula to set items property of Gallery if you want to show all records that matches the conditions:

 

Filter('Student Accommodation', And('Village Name' = varVillage, 'Village Block' = varBlock))

 

 Then you need to set the Text property of label control to:

 

ThisItem.Level

 


Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,524)