web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Filtering a Data

(0) ShareShare
ReportReport
Posted on by 254

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
    254 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard