cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
loopingmurdock
Helper IV
Helper IV

Labels dynamic to gallery

Hey power help,

 

when would like to know if you can add index to labels as shown below so when i click on a gallery,   label 1 is = to item 1, label 2 =to item 2

loopingmurdock_0-1661261421625.png

 

 

thank

 

4 REPLIES 4
RandyHayes
Super User
Super User

@loopingmurdock 

It is not very clear what it is that you are trying to do.  The values in one gallery do not correlate to anything in the second gallery.  If you can expand on exactly what you are looking for, that would be helpful.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Ramon031
Helper I
Helper I

You want to add a rownumber to the gallery so you can index it with a LookUp? I think this might help you, otherwise I need a little bit more context:

 

 Items = Ungroup(
ForAll(
Sequence(CountRows(<database>)),
{
TheRecord: Table(
Last(
FirstN(
<database>,
Value
)
)
),
Index: Value
}
),
"TheRecord"
)

  

loopingmurdock
Helper IV
Helper IV

Here example:

loopingmurdock_0-1661264795943.png

 

 

 

Ramon031
Helper I
Helper I

Create a collection and put it into a gallery to show all the items of November. Something like:

 

OnSelect = ClearCollect(colItemsSelectedMonth,Filter(Galler1.AllItems,Date = ThisItem.Date))

 

New Gallery Items = colItemsSelectedMonth

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,784)