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

DropDown List Based on 2 Share Point List

Hello everyone,
I have a list in Share Point called Share Point 1
Whose has columns of countries and fruits
I have already created an app that has a drop down list of country and fruit name and need to enter quantity (Unit)
When I click Finish - it moves the data to a list called Share Point2 (By using patch function)
The thing is that if I entered a number of fruits from a certain country - I would like to know how the list in the app will show only the fruits that I did not enter to that country,
According to the picture, if I choose Italy in the drop-down list, only the banana and watermelon will be displayed:

Power Apps.png

 

Thanks 🙂

 

 

 

 

 

 

 

 

 

 

 

4 REPLIES 4
gabibalaban
Dual Super User
Dual Super User

@Omer_K ,

Use this in items property of fruits dropdown:

 

With(
    {alreadySelectedFruits:
              Filter(List2,Country=CountryDropDown.Selected.Value),
     existingFruits:
              Filter(List1,Country=ContryDropDown.Selected.Value)
},
Filter(existingFruits,!(Fruit in alreadySelectedFruits.Fruit).Fruit
)

 

Hope it helps !

Omer_K
Helper II
Helper II

Hey Gabi 🙂

Thank you so much 🙂

if I would like to see all the fruits  that not selected in the gallery in the Check Box list - how do I adjust the formula?

Can you show me a screen capture, to figure it out what you want to accomplish ?

Omer_K
Helper II
Helper II

Hey Gabi 🙂

First of all - thanks for the help 🙂
According to the picture I attached,
If I chose the app in Italy - in the gallery (I called it FruitGallery) I will have a Check Box of the fruits that are not in Share Point List 2 and then I can select them as required

PpowerApps.png

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,672)