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 / Filter one dropdown va...
Power Apps
Answered

Filter one dropdown values based on another dropdown selected value.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community,
I have one variable -
Set(VarTime,["8 am","9 am","10 am","11 am","12 pm","1 pm","2 pm","3 pm","4 pm","5 pm","6 pm","7 pm","8 pm","9 pm","10 pm"])

Untitled.png

So in drop_down_1  items will be the values of the variable, But in drop_down_2  I want to show the items which are after the selected value of first drop down.
EX: User selected 2pm in first drop down so in second drop down I want to show from 3pm - 10 pm.
Can anyone please tell me how can I achieve this?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Anonymous ,

    Do this collection - screen OnVisible should work

    ClearCollect(
     colTime,
     {Timex: "8 am", RowNo:1},
     {Timex: "9 am",RowNo:2},
     {Timex: "10 am",RowNo:3},
     {Timex: "11 am",RowNo:4},
     {Timex: "12 pm",RowNo:5},
     {Timex: "1 pm",RowNo:6},
     {Timex: "2 pm",RowNo:7},
     {Timex: "3 pm",RowNo:8},
     {Timex: "4 pm", RowNo:9},
     {Timex: "5 pm", RowNo:10},
     {Timex: "6 pm", RowNo:11},
     {Timex: "7 pm", RowNo:12},
     {Timex: "8 pm", RowNo:13},
     {Timex: "9 pm", RowNo:14},
     {Timex: "10 pm", RowNo:15}
    )

    The Items of your first combo box is

    colTime

    If necessary, edit the box on the right and make sure it displays Timex (Time is a reserved word)

    The Items of the second combo box is

    Filter(
     colTime,
     RowNo > YourFirstComboBox.Selected.RowNo
    )

     

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @WarrenBelz 

    Thanks a lot,
    Its worked like miracle.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard