Hello! Seeking assistance in sorting my fields differently. I am trying to sort by tenure using a “ifelse” calculated field but am running into error messages.
Yes so when I enter it just for the “<1” it highlights line 8 with the same error message, and if I try adding quotes around all it highlights the entire equation with the same error message.
Thank you, fixed that and now it does accept the new calculated field, but it doesn’t show up correctly on my bar chart (I want it to sort as <1, 1-2, 3-4, etc.).
Under sort options I select the new calculated field but it doesn’t change the order on the y-axis.
I would also recommend maybe changing how you name that value. So instead of “less than 1 year” try “1 year or Less”. I know that means changing up how you are measuring the data but it should allow for the correct sort.
You could create a “sort field” ifelse({test_sort_by_tenure}="Less than 1 year",1,{test_sort_by_tenure}="1-2 years",2,.....)
Use the field with “avg” aggregation as sort option.