web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / drop down list options...
Power Apps
Unanswered

drop down list options based on another drop down

(0) ShareShare
ReportReport
Posted on by 38

Hi All,

I am creating skill profile. I used same collections for Current Level and Target Level drop down options. I received feedback that the target level has to be higher or the same as Current level. Please provide your suggestions how to proceed on this.

Guru6_0-1674011138000.png

 

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @Guru6 ,

     

    Could you please tell me what type of column you are using in the drop down box?
    I have a test that I hope can help you.
    In my scenario, my data source is SharePoint, and my grade column is a choices column that only supports single selection.

    vdezhilimsft_0-1674017883862.png

    vdezhilimsft_1-1674017944371.png

    LastN(
     Choices(List4.grade),
     LookUp(
     AddColumns(
     Choices(List4.grade),
     "lvl",
     Switch(
     Value,
     "level1",
     5,
     "level2",
     4,
     "level3",
     3,
     "level4",
     2,
     "level5",
     1
     )
     ),
     Value = Dropdown3.SelectedText.Value
     ).lvl
    )

    vdezhilimsft_2-1674017996621.png

     

    Best Regards,

    Dezhi

     

  • Guru6 Profile Picture
    38 on at

    Hi Dezhi,

     

    Thank you for your reply. I'm using the Sharepoint List as Data Source and the Type is Single Line of Text. The choices in the drop down is from different Data Source Share Point List.

     

    I added Item formula as below but If I select the first row, it updates in all the target level. 

    Guru6_0-1674049594529.png

     

     

    Also, I changed my Choices similar to the one you mentioned in your post. But again when I do changes down the User Level columns, suddenly it resets to all the target user level drop down lists.

     

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @Guru6 ,

     

    Please try:

    Switch(
     Dropdown6.SelectedText.Value,
     "level1",
     [
     "level1",
     "level2",
     "level3",
     "level4",
     "level5"
     ],
     "level2",
     [
     "level2",
     "level3",
     "level4",
     "level5"
     ],
     "level3",
     [
     "level3",
     "level4",
     "level5"
     ],
     "level4",
     [
     "level4",
     "level5"
     ],
     "level5",
     ["level5"]
    )

    vdezhilimsft_0-1674121895315.png

    vdezhilimsft_1-1674121944226.png

    vdezhilimsft_2-1674121972985.png

     

    vdezhilimsft_3-1674122010434.png

    vdezhilimsft_4-1674122054380.png

     

    Best Regards,

    Dezhi

  • Guru6 Profile Picture
    38 on at

    Hi Dezhi,

     

    Thank you for your detailed suggestion. 

     

    I still have the issue with auto-update to rest of the TargetLevel Drop down if I change the first user level drop down. I believe it is something to do with patching.

     

    Here is the code snippet for on change(). I have this code for both userlevel and targetlevel drop downs (change only in the level field in patching).

    Guru6_0-1674137628845.png

     

     

     

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @Guru6 ,

     

    I replaced my drop down with a combobox that only supports single selection, and used the following formula under the combobox's on change property, and it works fine.
    When I change the options of the first combobox, the data source can be automatically updated, and the option set of the second combobox will change according to the first one.

    vdezhilimsft_0-1674205537846.png

    vdezhilimsft_1-1674205565026.png

    vdezhilimsft_2-1674205593897.png

    vdezhilimsft_3-1674205619787.png

    vdezhilimsft_4-1674205662442.png

    vdezhilimsft_5-1674205693249.png

    vdezhilimsft_6-1674205737008.png

     

    Best Regards,

    Dezhi

     

     

  • Guru6 Profile Picture
    38 on at

    Hi Dezhi,


    The suggested solution caused Patch issue and no response I had to revert it.

     

    My code has Patch to the Sharepoint and also reload the collection immediately. I am not sure where it cause the problem. Also, the selection updates the rest of the Target user column for this recommendation as well ! 

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard