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 Apps
Answered

undefined

(0) ShareShare
ReportReport
Posted on by 150

Hi

 I have created a collection and I’m trying to show that in the horizontal gallery but my requirements is that after 25 labels it comes to another row.

I want it to come in another galley from the city name started

 

Categories:
I have the same question (0)
  • Moira0509 Profile Picture
    150 on at

    Hi

    I am trying to show item in horizontal gallery using collection .And i want it to come in new row after 25 labels.

    Can anyone help !!!

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Moira0509 ,

     

    It's all items' quantity determining rows in vertical Gallery if wrap count is set to 1. For your scenario, you can set wrap count of vertical Gallery to 25. 

     

    Best regards,

  • Moira0509 Profile Picture
    150 on at

    But the Wrap count limit is only 10.

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Moira0509 ,

     

    Sorry, I forgot that. Then I cannot find a way to achieve that need.

     

    Best regards,

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Moira0509 ,

     

    Seems I have found a way to achieve that. Firstly, you need an auto-increment ID column for this collection.

    vjefferni_0-1671782212415.png

     

    If there isn't, you can use below method to add the ID column:

    www.matthewdevaney.com

     

    With this collection, follow below steps:

    1. Add a vertical Gallery, wrap count set to 5

     

    2. Within the main Gallery template, add a sub-Gallery set wrap count to 5 as well.

     

    3. OnVisible of the Screen, apply below formula:

    Set(varNO, RoundUp(CountRows(Collection)/5,0));Clear(colTABLE);ForAll(Sequence(varNO,0) As SS, Collect(colTABLE,{Sub:Filter(Collection, ID > 5*SS.Value && ID <= 5*(SS.Value+1))}))

     

    4. Items of the main Gallery set to colTABLE

     

    5. Items of sub-Gallery set to ThisItem.Sub

     

    6. Now you can use Labels within Sub-Gallery template to display columns from your original collection.

     

    Best regards,

  • Moira0509 Profile Picture
    150 on at

    When I am trying this I am not able to see anything in my gallery.

    B0BD12BD-03B1-4748-A49C-EDAB8BC023D8.jpeg

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Moira0509 ,

     

    I can see only one Gallery on the screen, have you completely followed my steps?

     

    Best regards,

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Moira0509 ,

     

    Since the collection is created in OnVisible of the Screen, you need to go to another screen then back to this screen.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard