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

Reference Data Set From a Previous Drop Down List

Hello

 

How do I reference a data table based upon a previous drop down?

 

I have one table which is the master set of data ie Choice 1, Choice 2, Choice 3, when I select one of them, I want it to be able to look up the next table and only give the options for that table.

 

Each one is it's own table.

 

Choices
Choice  1Choice 2Choice 3
Choice 1AppleAppleBanana
Choice 2BananaOrangeOrange
Choice 3KumquatWatermelonKumquat
   Watermelon

 

Thanks

13 REPLIES 13

Doing that gave the same error as before.

 

However, there is more than 2 tables to choose from and it doesn't allow nested ifs.  I need to be able to choose from 4+ tables

Hi @SunnyJess ,

This makes no sense to me why the original did not work (actually sort of worked but with warning error) and why the below works, but it does (another anomaly in PowerApps code I guess).

Switch(
    Dropdown1.Selected.'Site (Site)',
    "BNO",
    Distinct(
        BNO,
        'BNO (BNO)'
    ),
    "MGR",
    Distinct(
        MGR,
        'MNR (MNR)'
    ),
    "YourThirdChoice",
    Distinct(
        YourThirdList,
        YourThirdField
    ),
    "YourFourthChoice",
    Distinct(
        YourFourthList,
        YourFourthField
    )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

By George we got it!

 

Thanks for sticking with it @WarrenBelz 

 

Much appreciated, many internet points to you.  Thank you 🤘

No problems @SunnyJess ,

Added another entry to my "Stranger Things" list as well 🤔

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

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.

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