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 display only a ...
Power Apps
Answered

How to display only a selected user in a gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
on my application I have a screen that displays a patient's file with several information, on the same screen I can access the history of consultations of the patient by pressing label.
It takes me to another screen containing the history of consultations, except that this one displays all the consultations of all the patients except me I only want to display the history of the patient previously selected in the old screen.

 

What should I put in ''item'' so that it selects the patient I want to see?

 

Thank you for your help

 

details patient.png
historique.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Anonymous ,

    I assume the "history" is a Gallery - I will call it Gallery1 - replace with your name.

    I also assume you have a Patient Number somewhere in the data - I will use PatientID

    Also your list name - I will use Patients

    So the Items of the new gallery would be

     

    Filter(
     Patients,
     PatientID = Gallery1.Selected.PatientID
    )

     

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz 

    • I assume the "history" is a Gallery - I will call it Gallery1 - replace with your name.  ✔️ (Gallery3)
    • I also assume you have a Patient Number somewhere in the data - I will use PatientID
      Screenshot_1.png

                  normally it's this.

     

    • Also your list name - I will use Patients
      To be honest, I don't know what that refers to 😕 

     

    PS : A little information might be helpful.
    I have two entities, the first "patient" which contains the list of patients and the second "consultation" which is supposed to contain the list of all consultations.

     

    Screenshot_2.png

  • Verified answer
    ilton Profile Picture
    194 on at

    Hi @Anonymous 

    To get the list of consultations from the patient selected in the previous screen you can:

    Assuming

    Gallery1 is patient list and Gallery3 is the medical history and that you click/select the patient in Gallery1

    you should set Items in Gallery3 to Filter(consultations; Patient_id = Gallery1.Selected.Patiend_id)

    Gallery1.Selected.Patiend_id is the selected patiend id

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help @ilton 

    It's working 😊

    Screenshot_3.png

     

    Have a nice day ^^

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Anonymous ,

    Good to see it working.

    I am in a different time zone and just got back to it - 6 am here

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard