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 with two dropdown
Power Apps
Answered

Filter with two dropdown

(0) ShareShare
ReportReport
Posted on by 1

Hi,

 

I'm trying to filter item from SP list based on two dropdowns in powerapps.

 

First drop down is with months.

Second dropdown is with employee name.

 

Both the items are dropdown entries in the SP list

 

SP list name is Data

 

First dropdown is created using below formula in the powerapps dropdown item

 

Distinct(Data,Month.Value)

 

On the second dropdown. I want only the employee name having the month selected from the first dropdown. So I used below formula. But the formula is showing error.

 

Filter('Data','Engineer Name'.Value,(Month.Value=MonthDropdown.Selected.Result))

 

I need help in rectifying this.

 

 

 

 

 

Categories:
I have the same question (0)
  • SkiDK Profile Picture
    1,016 on at

    Hi @venkatvedavyas 

     

    Can you try it like this:

    Filter('Data', Month.Value = MonthDropdown.Selected.Result).'Engineer Name'.Value
  • BCLS776 Profile Picture
    8,994 Moderator on at

    @venkatvedavyas wrote:

     

    Filter('Data','Engineer Name'.Value,(Month.Value=MonthDropdown.Selected.Result))

     

    I need help in rectifying this.

     


    We need to edit your Filter() function to work better. The 2nd and 3rd arguments need to be formulas that evaluate to true or false on specific columns for records from your table. The 2nd argument is not a formula and the 3rd argument doesn't refer to a column. Instead, try something like:

    Filter(Data,
     'Engineer Name' = EmployeeDropdown.Selected.Value, // Assuming Engineer Name is a text column
     Month(myDateColumn) = MonthDropdown.Selected.Value // Change myDateColumn to your column
    )
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @venkatvedavyas,

    Have you solved your problem

    Do you want to populate the Combo Box with the employee name based on the month selected?

    Could you please tell me if a same month has different Engineer names?

    1). If each month has its unique engineer, you could achieve this using 2 Dropdown box.

    Set the second Dropdown Box Default property as below:

    LookUp(Data,Month.Value=MonthDropdown.Selected.Result).'Engineer Name'.Value

    vqiaqimsft_0-1628574815138.png

    2).If a same month may have different engineers, you should use Combo Boxes.

    Set the second Combo Box DefaultSelectedItems property as below:

    ForAll(Filter(Data,Month.Value=MonthDropdown.Selected.Result).'Engineer Name','Engineer Name')

     

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard