Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Filtering a Data

(0) ShareShare
ReportReport
Posted on by 252

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?

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Filtering a Data

    HI @LaurensM 

     

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

  • LaurensM Profile Picture
    LaurensM 12,510 on at
    Re: Filtering a Data

    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!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard