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 Apps
Unanswered

Filtering a Data

(0) ShareShare
ReportReport
Posted on by 262

Hi All,

 

I am using the below to filter a Datatable.  

With({aFilter: Filter('DN',Startswith('SEARCH REF',PONumIn.Text))},
Filter(aFilter,
If(TogNumDelivery.Value,STATUS="Delivered",true),
If(TogNumPOFilter.Value,'ORDER REF'=POTables.Selected.'ORDER REF',true)
)
)

 

It is not doing returning any results, any ideas to correct?

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Skybluekid,

     

    I always tend to avoid If() statements as a condition, could you give the following adjustment a try:

    With(
     {aFilter: Filter('DN',Startswith('SEARCH REF',PONumIn.Text))},
     Filter(
     aFilter,
     !TogNumDelivery.Value || STATUS="Delivered",
     !TogNumPOFilter.Value || 'ORDER REF' = POTables.Selected.'ORDER REF'
     )
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Skybluekid Profile Picture
    262 on at

    HI @LaurensM 

     

    Thank you for the reply, I have managed to solve the issue.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard