Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Filter formula not working.

(0) ShareShare
ReportReport
Posted on by 80

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:
  • WarrenBelz Profile Picture
    146,981 Most Valuable Professional on at
    Re: Filter formula not working.

    @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)

  • CU06111240-0 Profile Picture
    80 on at
    Re: Filter formula not working.

    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
    146,981 Most Valuable Professional on at
    Re: Filter formula not working.

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 110 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 77

#3
stampcoin Profile Picture

stampcoin 52

Overall leaderboard