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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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