Hello! I am working on a map and dashboard that uses a service from my city with a dataset on people involved in traffic incidents. Each row is an incident and I'd like to show in a list the number of incidents by TYPE in each WARD.
One of the fields is WARD, which is straightforward enough as it lists the ward in which each incident occured. Another field is TYPE which represents the type of vehicle/involvement.
However TYPE is represented by numbers like 03, 04, 05, 06, 18, 19, 21, ... where multiple numbers represent one type of vehicle/involvement (Pedestrian, Cyclist, Motorist.) The same numbers always represent the same modes of travel, and I am trying to figure out how to write a data expression that will enable me to replace/decode the values for each TYPE with the text form of the type of involvement, and then group to get the count for each involvement by ward. Or those steps in reverse, if that's more logical.
In the map, I could write an Arcade expression to configure the pop-up and symbology easily according to what each number in TYPE represents qualitatively. But I am new to dashboards, so trying to figure out how to bring this into the dashboard as a Data Expression so that I can configure it for the user to understand.
Thanks for your help!