Record counter

Hi,

I am not sure if I am using this forum correctly but I found this post and it is exactly what I am trying to do:

However, the video will not play to show the solution I am looking for. Is there another link for this video or can someone type out what is going on in the video?

Thanks

The video was posted by @Darren_Murphy

Try the one below:

yes it works. thanks!

is there a way to have the counter start over based on the row owner? I would like to have separate counters for separate users

Which method did you end up using?

I ended up using use case 2 that @Darren_Murphy provided.

Ok. So one option is to apply Row Owners to the table. That way all of the logic will only have access to the rows owned by the signed in user, and all the counts should automatically be unique to each user.

Another method is to create a Query column that filters rows where the email in the row is equal to the This Row → Email. Then point your lookup column to the query instead of the table and everything else should work automatically.

1 Like

So I tried row owners and it still counts up regardless of who is the active user. Example:

User 1: 0
User 1: 1
User 1: 2
User 2: 3
User 2: 4
User 2: 5

Where the expected out come should be:

User 1: 0
User 1: 1
User 1: 2
User 2: 0
User 2: 1
User 2: 2

For your second use case. I made a query column that filters by “email is This row → email” then I have another column that did a look up on this query column for “email” and it just returned the emails. Not a counter.

Am I doing something wrong?

Have you tried in the published app or the front end of the the app in the builder? The data editor doesn’t fully respect row ownership because it still shows all data whether or not you own it.

You should have been able to use your existing lookup and point it to the query column. Shouldn’t the lookup column return RowID’s instead of emails??? The process should be exactly the same as option 2 from Darren’s video, but with the addition of the query column and changing the existing lookup column to use the Query. Assuming you had everything else configured for the counts, it should have just picked up and worked with those two small changes.

1 Like

Oh yes I didn’t have it pointing to row ID. But your second use case using the query column works and shows in the data editor. Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.