Hey there, happy 2018.
I have a table that includes:
state, type and count
There are 50 states and each state has multiple types and each type has a count.
It looks generally like this
state type count
ca a 50
ca b 3
ca c 5
ca d 12
wa d 13
wa b 14
wa e 11
wa a 28
ny c 39
ny a 12
ny b 52
ny d 11
I’d like to have a list of states and just the type with the highest count per state. Then, I’d like to get a percentage that shows how many of the records in that state are of that particular type.
So it looks like this –
state type count percent
ca a 50 71%
wa a 28 42%
ny c 52 46%
How do I do this in looker? Thanks!