Use Arcade to summarise on multiple fields

281
0
02-16-2024 07:56 AM
Labels (1)
DebHSF
by
New Contributor III

I have a dataset that I need to transpose and summarise all at once. In Excel this would be easy, but in Dashboards it doesn't seem possible with the standard options as you can only have one category field. So I'll need to use Arcade.

My current dataset looks like this:

ZoneStatusDate Captured (date field)
RedOpenFeb 16, 2024
RedClosedFeb 12, 2024
BlueOpenFeb 01, 2024
RedOpenFeb 16, 2024
YellowClosedFeb 13, 2024
etcetcetc

 

But I want to group it by Zone and count the number of status in each one, so it will look something like this:

ZoneOpen CountClosed Count
Blue526
Red168
Yellow59

 

I'm trying to use if statements and GroupBy to create new feature sets, but I can't figure out how to transpose the Status field into columns with counts. Any suggestions welcome!

0 Replies