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 Platform Community / Forums / Power Apps / How to add to the foll...
Power Apps
Answered

How to add to the following code to only show non-completed records?

(1) ShareShare
ReportReport
Posted on by 18

Search([@'New tables'], SearchInput1.Text, "cr034_midwife", "cr034_analgesiagivenother","cr034_assessmentothercomment","cr034_babyoutcomeother")

 

How would I go about adding a stipulation to hide if the discharge date is completed?

 

Thank you for any advise.

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @kimstev 

    If you want to filter out records that have a completed discharge date, you can add a Filter function to your existing formula. Here is how you can modify your existing formula:

    Filter(
     Search(
     [@'New tables'],
     SearchInput1.Text,
     "cr034_midwife",
     "cr034_analgesiagivenother",
     "cr034_assessmentothercomment",
     "cr034_babyoutcomeother"
     ),
     IsBlank(DischargeDate) // replace 'DischargeDate' with your actual column name
    )

    In this updated formula, the Filter function is used to further refine the results returned by the Search function.

    The IsBlank function is used to check whether the DischargeDate is blank or not.

    If the DischargeDate is blank, that means the record is not yet completed, so it will be included in the result.

     

    Please replace 'DischargeDate' with the actual name of your column that stores the discharge date.

    This formula assumes that a non-completed record is identified by a blank discharge date. If your completion criteria is different, you should adjust this formula accordingly.

  • kimstev Profile Picture
    18 on at

    Thank you so much for you help, works great.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard