Is there a way to count rows in the current gallery view.
With COUNTROWS, I can count total rows in my SharePoint List but I just want to count number of rows currently present in the gallery (i.e. after I have applied my filters).
Any help would be well appreciated
Just ran into this problem today. Is there anyway to get around this?
This can be abbreviated to CountIf(GalleryComponent.AllItems, Status = "Pending")
Hi Babulau,
Use CountRows(Filter(GalleryComponent.AllItems,(Status = "Pending")))
GalleryComponent is the gallery name.
Status is the column name
Best,
Ak
Hi Bitlord. Question: How do you count based per a value ? Each item in my gallery has a status field, pending or done. I would like to count only the pending ones.
Thanks
Fully agree with @BitLord69, but just be careful with paging.
A gallery will only load the first 100 items initially and will load the next batch of 100 items if you scroll down to the end of the current list. It will do this four times to retrieve a maximum of 500 items.
At least this was true about a month ago when I last checked.
Just call CountRows with Gallery.AllItems, like this:
CountRows(gMyGallery.AllItems)
Good luck!
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional