Help ! I want to show data average collected coming from different users

Hi,

I collect data for several users, I want to display data corresponding to each user in order to let them watch but not modify.

I tried with :
“Do search for” data, each item data spe:average

It does show data but only from one user and displays this one to all others.

I want each data corresponding to each user

Exemple : 5 + 5 + 5 = 5, Sarah average is 5
5+ 7 + 8 = 6.6, John average is 6.6

Please help me.

Thanks

Hey @gassytch :wave:

It really depends how you have your database set up. If you share some screenshots of what you have that might help. Let me try to set up an example for you to see one way you can set up the database structure and I will post the link back here soon. :blush:

Here you go:

Editor: testApp42wCleanDB | Bubble Editor

Preview: https://testapp42wcleandb.bubbleapps.io/version-test/avg_from_diff_users?debug_mode=true

Here is just one way to do this. I am not sure how you have everything else setup but instead of grouping, you could display your list of users depending on what you need or who has access to these users.

Hope that helps! :blush:

Thank you for your help,

I do understand the grouping but I don’t understand the “parent group Grouping” and how you made it.

There is what I did so far but it isn’t what I want

I want each user has access to his own stats

1 Like

@J805, do you see the picture ?

1 Like

Now I see it, it didn’t notify me. :blush:

What is your constraint for your Search for Stats?

I didn’t put any constraint

Should I ?

@J805 Should I ?

Yeah. I believe so. You should have it based on what user you are looking at. Where is your list of users?

Or are you just looking at one user at a time on the page? Where are you accessing the user data?

My list of user is on my app data, located in “data” section.
What type of constraint should I do? Based on user ?

When I preview the app, I want to see average stats coming from different user that I have in my database.
So, if log in with two diferent users it should be different from the other

So do you want each user to only see their own stats?

Yes, that’s the idea

So the best thing would be to set up your privacy rules for Stats. Something like Current user is this Stat’s creator (unless you have a user field besides creator that you are using). Or something like that should fix it.

Thank you @J805

I used all your advice to make it work, finally I think the issue was the constraint.

There is what I did :

Now, when I preview, I can see different average from diferent users.

Thank you for your help.

1 Like

Cool. Just make sure to set up privacy rules otherwise everyone can still see other people’s stats. :blush:

This topic was automatically closed after 70 days. New replies are no longer allowed.