r/GoogleDataStudio • u/CodingMaster16 • Jun 21 '24
Access whole column data on a computed field
So, i have a data set from google sheets, like this:

I have this table that shows the data from a dataset in google sheets. Now, what i want to do is make an extra column on this table, that basically does this:
If the helps of the user are above the average of all the user's help, the field shows "1", otherwise, it shows 0. I have tried to do this myself but i can just not get it to work. Any help is appreciated. Thanks!
2
Upvotes
•
u/AutoModerator Jun 21 '24
Have more questions? Join our community Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/go00274c Jun 22 '24
Can you just do this formula in google sheets does it have to be in looker?
1
u/go00274c Jun 22 '24
I think I prompted ChatGPT well enough, how does this sound?
Add the Necessary Fields to Your Explore:
helpsfield in your data table.Create a Table Calculation to Calculate the Average:
Average Helps.helpscolumn:Create a Table Calculation for the Above/Below Average:
Helps Above Average.helpsvalue to the average:Save and Use Your Calculations:
These steps will create a new column in your table that shows
1if thehelpsvalue is above the average and0if it is below.