Hi everybody
Sorry for the simple question but I still new to powerapps. I have a sharepoint list with columns:
User Access date
A 01/12/2020
B 11/10/2020
B 23/11/2020
C 17/11/2020
A 05/12/2020
B 03/10/2020
I am trying to create a collection like below. Which User means the column with distinct users and Access represents the number of access of each user
User Access
A 2
B 3
C 1
I am using code below which give me distincts user, however I dont know what to do for Visits columns
ClearCollect(
FSRVisits,
{
User: Distinct(Filter(sharepointlist,('Access Date'>= DatePicker_Start.SelectedDate) && ('Access Date'<= DatePicker_End.SelectedDate)),Username),
Visits: ????
}
)
The reason for creating a collection is that I want to use in a gallery sorting by Visits (decreasing) with the final result like:
User Access
B 3
A 2
C 1
Any idea would be greatly appreciated.
Regards