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

Countrows in gallery

hello, i have a gallery that visualise data from sharepoint list.

 

i would like to count distinct title of the gallery.

 

i want to evitate delegation problem, counting directly in sharepoint list.

 

how can i do ?

 

thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

If countRows Datasource:

CountRows(Distinct(Datasource,Title))
 

If countRows Gallery:

Gallery Items:

Distinct(Datasource,Title)

 

Then count gallery items

CountRows(Gallery1.AllItems)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
Super User II
Super User II

With(
    {gal: Gallery1.AllItems},
    CountRows(
        Distinct(
            gal,
            title
        )
    )
)
Super User III
Super User III

If countRows Datasource:

CountRows(Distinct(Datasource,Title))
 

If countRows Gallery:

Gallery Items:

Distinct(Datasource,Title)

 

Then count gallery items

CountRows(Gallery1.AllItems)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (27,032)