How to get counts

I have records that have a field called `Compliance Framework` which can be [x,y,z,other]. I want to get a count of how many records there are for each “compliance framework” and then to visualize that as a pie chart

0 1 2,406
1 REPLY 1

Hey Jordan!

We would need 2 fields here:

  1. a dimension `Compliance Framework` and
  1. a measure of type “count” which will be counting the records in your dataset (https://docs.looker.com/reference/field-reference/measure-type-reference#count)

So, when you select these 2 fields you will get exactly the result you want - your data will be grouped by distinct `Compliance Framework` values and they will have the count for each value.

And you select the pie chats in the visualization tab after that

Top Labels in this Space
Top Solution Authors