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 formula not wor...
Power Apps
Unanswered

Filter formula not working.

(0) ShareShare
ReportReport
Posted on by 83

In my current app, when a commodity is selected, I would like the item description to filter and show only the item descriptions from that commodity. 

 

The formula that is being used for the commodity column (datacardvalue9) is 

tchamb2_0-1699123849377.png

The formula I am using for the item description column is 

tchamb2_0-1699123679420.png.

 

I do not know why the formula is not working. Is there a different formula that should be used for a dropdown column that has a global variable? My overall goal is if you have commodity: Avocado, then the item description should filter to only avocado item descriptions. Please help me with this matter if you can.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    Hi @tchamb2 ,

    I am a little unclear what you are doing here and how/when varCommodity is set, but the top piece could be

    Table(
     {
     Result: varCommodity, 
     Value: varCommodity
     }
    )
    

    and the second one

    Filter(
     'Conditioning Tool 2', 
     'Item Description' = varComodity
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • CU06111240-0 Profile Picture
    83 on at

    The formula for the table is not working. For the previous page depending on the item selected decides the commodity selected. The formula that is used  Set(varCommodity,"Avocado");Set(varconditioningday,"4");Navigate(EditScreen3,ScreenTransition.Fade)

     

    For the commodity I added the next formula

    If( varCommodity = "Avocado", {Result: "Avocado", Value: "Avocado"}, varCommodity = "Mango", {Result: "Mango", Value: "Mango"}, varCommodity = "Kiwi", {Result: "Kiwi", Value: "Kiwi"}, varCommodity = "Pear", {Result: "Pear", Value: "Pear"}, varCommodity = "Honeydew", {Result: "Honeydew", Value: "Honeydew"} ;Table( { Result : varCommodity , Value : varCommodity } )

     

    For the item description I used 

     

    Filter( 'Conditioning Tool 2', 'item description' = varCommodity)

     

    The Formula is not working.

     

     

     

     

  • WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    @tchamb2 ,

    I cannot progress this currently as you have simply repeated your first post. "Not working" also does not tell me a lot (do you get an error, or an unexpected result) and your commodity formula is unnecessarily complex (I gave an example of an alternative)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard