QueryStash

QueryStash

Bucket Aggregations Using IF Statements

Taking aggregations from specific items in a dataset can easily be achieved by using simple IF statements inside a SUM(), AVG() or any function for that matter.

Just remember to use NULL as the false value as using 0 with AVG() will mess up your results.

Public
bigquery

QueryStash

Created: Oct 3rd 2020

QueryStash

QueryStash

Made with ❤️ by @Yekalb

© 2024 Query Stash. All rights reserved

TwitterFacebookEmail

Resources

BlogPricingYour First QuerySearch Your Stash

Stay up to date

Terms of ServicePrivacy Policy