cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RajSaha_
Helper III
Helper III

Populate Dropdown based off another Dropdown Values

How to achieve using of the switch condition only 1 st condition I'm getting 

RajSaha__0-1610734627111.png
using of the the below condition only I'm getting 1st option 
Switch(
DataCardValue1.Selected.Value,
"Assurance",{Value:"Canada"},
"Assurance",{Value:"Real Estate"},
"US-Central",{Value:"Southeast"},
"US-Central",{Value:"Central"},
"US-East",{Value:"Northeast"},
"US-West",{Value:"West"},
"US-West",{Value:"Southeast"},
"US-PBT",{Value:"OTC"}
)

RajSaha__2-1610734851948.png


I need output if I chose the "Assurance" in the 2nd dropdown I'm able to see "Canada" & "Real Estate" 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User III
Super User III

@RajSaha_ 

This is because Switch will stop evaluating the conditions once one condition is met.  So the subsequent US-Central item in your formula will never be evaluated.

 

Please consider changing your Formula to the following:

Switch(DataCardValue1.Selected.Value,
    "Assurance",["Canada", "Real Estate"],
    "US-Central", ["Southeast", "Central"],
    "US-East",["Northeast"],
    "US-West",["West", "Southeast"],
    "US-PBT",["OTC"]
)

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

RajSaha_
Helper III
Helper III

@RandyHayes Thank you so much for quick solution 🙂😉

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@RajSaha_ 

This is because Switch will stop evaluating the conditions once one condition is met.  So the subsequent US-Central item in your formula will never be evaluated.

 

Please consider changing your Formula to the following:

Switch(DataCardValue1.Selected.Value,
    "Assurance",["Canada", "Real Estate"],
    "US-Central", ["Southeast", "Central"],
    "US-East",["Northeast"],
    "US-West",["West", "Southeast"],
    "US-PBT",["OTC"]
)

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

RajSaha_
Helper III
Helper III

@RandyHayes Thank you so much for quick solution 🙂😉

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (35,060)