cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vikna
Helper III
Helper III

2 Codes in Gallery Item

Hi Team,

I have a gallery as below.

I have managed to create alternate colour change for the rows.

 

vikna_2-1625410445483.png

 

There are some codes needs to be added the the Gallery's Item as seen below (1).

 

vikna_3-1625410456624.png

 

I want to be able to add another line at the same gallery's Item (2) so that I can create a filter of dropdown (see pic 1).

 

Question is how do I put (1) and (2) in one Gallery Item.

Please advise.

Thank you!

1 REPLY 1
Drrickryp
Super User
Super User

@vikna 

 

With({Records:Filter(
                      'THRESHOLD for PERIPHERAL',LOCATION=DropdownSelect.Location.Selected.Result
               )
      },
 ForAll(
       Sequence(
                 CountRows(
                            records
                   )
        ), Patch(
                 Last(
                      FirstN(
                             Records,Value
                      )
                  ), {rowNumber:Value}
           )
   )
)

 

The formula above will filter the variable "Records" and then do the sequence and patch.  I'm not sure that is what you want to do.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,654)