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 / Getting the GalleryLis...
Power Apps
Unanswered

Getting the GalleryList to load on a specific row?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am creating a power app that has information on a user who is on call each day of the year. I have populated the data into a Gallery List.

 

My Table is called OPSData and I have an Excel Sheet in OneDrive

Unique, - Number (numbers 1- 365)

Month, - Text (e.g June)

Date, -Text  (dd/mm/yyy)

NumberDate, Number (date in the month 1-31)

Day, Text (Monday- Sunday)

Primary - Text (user name

 

In my Gallery List I have :

                                                                        Todays Date

----------------------------------------------------------------

NumberDate                         Unique                   Primary    

Day

Month

-----------------------------------------------------------------

 

What I am trying to do is to get the Gallery List to show the correct row based on Todays Date. The way I am doing this is, I have two dates hidden Start Date and Todays Date. The Start Date is set to the start of the year and Todays date is whatever the date today is. I am then counting the days between those two dates using:

 

 

Value(DateDiff(StartDate.SelectedDate, TodaysDate.SelectedDate,Days))

 

 

 

I then get a value (e.g. 153)

 

What I am trying to then is feed that value into the Default for the Gallery List to get the default row shown on load to be 153. On the GalleryList Default I am using:

 

 

LookUp(OPSData, Unique = DayCount.Text)

 

 

 

However when I run the app the GalleryList does not jump to that row.

 

Any help would be appreciated.

 

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous 

    Does the LookUp in the default property return the correct record and is that record in the gallery? 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am not sure what you mean, this is one of my first Power Apps.

    The unique value 153 does show up in the gallery.

     

    Raka_0-1622635899694.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes the lookup does - had another look

    Raka_1-1622635996052.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Is the Gallery in Edit Mode?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Seems it is 

     

    Raka_0-1622636363963.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Raka_1-1622636451625.png

     display mode is view?

     

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a28.jpg

    I am using SharePoint as data source. I made some test on my side. It is working fine.

    Make sure you have some data on that particular unique. And also datatype matches. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous There we are. Change it to Edit.

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Still not jumping to row 153. 

     

    I did read somewhere that Flexible Gallerys have issues jumping to rows as the data is loaded as the user scrolls. is there a way to change the list to standard gallery?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous I would recommend changing it but unfortunately there is no direct way. You'll have to create a new one and copy the existing control from the old to the new.

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard