cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NewbieMeg
New Member

How can i align two values?

Hi all ,I am creating a project for my studies  and i have two two tables both are located on Sharepoint however they are separate. 

 

dropdown  1 Values - Engineering, Sales , Architecture , Law , Police

dropdown  2 Values- High Demand, Medium Demand, Low Demand

 

Result - When a user selects a value on one of the dropdown list i would like the dropdown 2 value to default as per mapping.

 

Engineering = High Demand

Sales = High Demand

Architecture = Medium Demand

Law = Low Demand

Police = Medium Demand

 

*Note * These values are not on the same share-point site or in the same table, am i able to default dd 2 based on dd 1 although they are in different tables . All answers appreciated. 

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @NewbieMeg ,

The problem is not the different tables, it is the fact there is no relationship between the values. You could also do this with a Collection

ClearCollect(
    colOptions,
    {
        Value: "Engineering",
        Demand: "High Demand"
    },
    {
        Value: "Sales",
        Demand: "High Demand"
    },
    {
        Value: "Architecture",
        Demand: "Medium Demand"
    },
    {
        Value: "Law",
        Demand: "Low Demand"
    },
    {
        Value: "Police",
        Demand: "Medium Demand"
    }
)

The first (Items) could be colOptions and your second (Default)

LookUp(
   colOptions,
   Value = DD1Name.Selected.Value
).Demand

 

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.

Visit my blog Practical Power Apps

 

WarrenBelz
Super User
Super User

Hi @NewbieMeg ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,114)