Skip to content
Advertisement

Categorize the total amounts

I have a query that gave me a list of store names and its respective amounts. However I would like to sum and categorize the amounts like this:

Store Name | $0-$50 | $50 – $100 | $100 – $500 | $500+

Based on the following screenshot:

enter image description here

Here is my condition:

Here is my basic query for the above snapshot

Advertisement

Answer

You need conditional aggregation. Not clear what you want to do about values which are on the border, I will leave that to you:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement