Hi! I'm working on a dashboard where I need to configure the data. My data contains a field with multiple number values. When decoded, more than one of the numbers represent the same text value:
Type
1 = Human
2 = Human
3 = Human
4 = Bird
5 = Bird
6 = Plant
7 = Plant
I'd like to decode the numbers or replace them with the strings they represent.
So I'd like to take my data from this:
| Region | Type_num |
| North | 4 |
| South | 2 |
| West | 7 |
| North | 1 |
| South | 5 |
| East | 3 |
| North | 3 |
to this:
| Region | Type_text |
| North | Bird |
| South | Human |
| West | Plant |
| North | Human |
| South | Bird |
| East | Human |
| North | Human |
I know I can use a data expression and create a new feature set. But I'm pretty new to data expressions and just not sure how to incorporate this into one and whether or how to use decode, replace, or another function.
Eventually, I'd like to get the count and percentage of each Type (using its text name) by region.
Thanks so much for your help!!