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 Platform Community / Forums / Power Apps / Dynamic filter search
Power Apps
Answered

Dynamic filter search

(0) ShareShare
ReportReport
Posted on by

hi Expert, 

i am tryin to create a lookup in text input field. 

but for result i want to exclude anything from specific country lets say singapre

my current code to look up the client info in two db, now i want to add filter condition in this code. can you help

 

pokhani_0-1702671649889.png

the code in default of the textinput is mentioned below. 

 

If(TextInput1_11.Text<>"" ||TextInput1_11.Text=Blank(),
If( LookUp(CLIENT_INFO,Source_Client_ID= TextInput1_11.Text).Client_DOB<>Blank() || LookUp('gci.tbl_client_policy_pii_raw','Source Client ID'= TextInput1_11.Text).'Date of Birth'<>Blank() ,Coalesce( LookUp(CLIENT_INFO,Source_Client_ID= TextInput1_11.Text).Client_DOB,LookUp('gci.tbl_client_policy_pii_raw','Source Client ID'= TextInput1_11.Text).'Date of Birth'),
 Blank()))

 

please help 

 

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

    Hi @Anonymous ,

    Assuming the country is in both data sets. Depending on your Data Source, you may have Delegation issues with this added filter

    With(
     {
     _Info:
     LookUp(
     CLIENT_INFO,Source_Client_ID = TextInput1_11.Text &&
     Country <> "Singapore"
     ).Client_DOB,
     _Policy:
     LookUp(
     'gci.tbl_client_policy_pii_raw',
     'Source Client ID' = TextInput1_11.Text &&
     Country <> "Singapore"
     ).'Date of Birth'
     },
     Coalesce(
     _Info,
     _Policy
     )
    )

     

    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

     

  • Community Power Platform Member Profile Picture
    on at

    HI Warren

    Thank you for the quick response but its showing error 

     

     

     

     

    With(
     {
     _Info:
     LookUp(
     CLIENT_INFO,Source_Client_ID = ClientID2.Text &&
     Issue_Country <> "Singapore" "//Error message: Incopmpatible type of comparision. These type cant be compared. Table, text"
     ).Client_DOB,
     _Policy:
     LookUp(
     'gci.tbl_client_policy_pii_raw',
     'Source Client ID' = ClientID2.Text &&
     'Source Country' <> "Singapore"
     ).'Date of Birth'
     },
     Coalesce(
     _Info,
     _Policy
     )
    )

     

     

  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    @Anonymous ,

    What type of fields are 'Issue Country'  and 'Source Country' ? If a Choice or Lookup column

    With(
     {
     _Info:
     LookUp(
     CLIENT_INFO,Source_Client_ID = ClientID2.Text &&
     Issue_Country.Value <> "Singapore"
     ).Client_DOB,
     _Policy:
     LookUp(
     'gci.tbl_client_policy_pii_raw',
     'Source Client ID' = ClientID2.Text &&
     'Source Country'.Value <> "Singapore"
     ).'Date of Birth'
     },
     Coalesce(
     _Info,
     _Policy
     )
    )

     

    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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard