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 / Multiple filters on 2 ...
Power Apps
Answered

Multiple filters on 2 lists

(0) ShareShare
ReportReport
Posted on by 33

Hi All,

i have 2 dropdowns, which i need to check if the selected values are equal and based on that populate the 3rd dropdown, also have another level of filter on this 3rd dropdown, how can i achive this

Categories:
I have the same question (0)
  • svijay_001 Profile Picture
    Microsoft Employee on at

    Can you please elaborate on your requirement ? It is little confusing. 

  • svijay_001 Profile Picture
    Microsoft Employee on at

    @VineethKN 
    Can you please elaborate on your requirement ? It is little confusing. 

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @VineethKN 

     

    To compare the value between two dropdown selections, you can use if statement to achieve your needs:

    If(Dropdown1.Selected.Result = Dropdown2.Selected.Result, true- do something , false - do something)
    For the filter on third dropdown, you can modify your formula as below:

    Filter(DataSource, Condition1 && If(Dropdown1.Selected.Result = Dropdown2.Selected.Result, <<Action if true>> ,<<Action if not true>>) && Condition2 )
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • VineethKN Profile Picture
    33 on at

    Hi Yashag, thanks for the reply,

    am getting error which i use Filters inside if condition Invalid Argument Type: expecting one of the following : boolean, number , text

    what is that am doin wrong,

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @VineethKN 

     

    Can you please share a snippet of the code/ screenshot of the error and the expression so that I can have a better look and assit you with this?

  • VineethKN Profile Picture
    33 on at

    Am very new to Powerapps, so please pardon my syntax if it is wrong 🙂

     

    SortByColumns(Filter (
    RoutingMethod,
    RecordId in ShowColumns (
    Filter (
    RoutingLink,
    GBERecordId = dd_SbgGbe.Selected.RecordID
    ),
    "RoutingRecordId"
    ).RoutingRecordId && Text(ActiveStatus) = "true"
    ) If(OriginCountry = DestCountry, Filter(RoutingMethod, RoutingType = "Both" || RoutingType= "Domestic" ), Filter(RoutingMethod, RoutingType="Both" || RoutingType = "International")), "RoutinfCode" )

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @VineethKN 

     

    Can you try:

    SortByColumns
    (
     Filter(RoutingMethod,
     If(OriginCountry = DestCountry,RoutingType = "Both" || RoutingType= "Domestic",RoutingType="Both" || RoutingType = "International")
     &&
     RecordId in Filter(
     RoutingLink,
     GBERecordId = dd_SbgGbe.Selected.RecordID
     ).RoutingRecordId
     &&
     Text(ActiveStatus) = "true"
    )
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @VineethKN ,

    Based on the formula that you provided, I think there is something wrong with it.

     

    I have made a test on my side, please consider modify your formula as below:

     

    SortByColumns(
    Filter(
    RoutingMethod,
    RecordId in Filter(RoutingLink, GBERecordId = dd_SbgGbe.Selected.RecordID).RoutingRecordId,
    Text(ActiveStatus) = "true",
    If( /* <-- Modify your If function as here: */
    OriginCountry = DestCountry,
    RoutingType = "Both" || RoutingType= "Domestic",
    RoutingType="Both" || RoutingType = "International"
    )
    ),
    "RoutinfCode",
    Descending
    )

    Please consider take a try with above formula, then check if the issue is solved.

     

    More details about Filter function and If function in PowerApps, please check the following article:

    Filter function

    If function

     

    Best regards,

     

  • VineethKN Profile Picture
    33 on at

    Thanks a lot, it worked like charm

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard