@David_Wong just to follow up on this, the age categories were in fact getting shuffled around incorrectly. I solved this by using the OR operator in my sorting calculation:
ifelse({Ex_grade} = “5”, 5, {Ex_grade} = “6”, 6, {Ex_grade} = “7”, 7, {Ex_grade} = “8”, 8, {Ex_grade} = “9”, 9,{Ex_grade} = “10” OR {Ex_age} = “10”, 10,{Ex_grade} = “11” OR {Ex_age} = “11”, 11,{Ex_grade} = “12” OR {Ex_age} = “12”, 12,{Ex_grade} = “13” OR {Ex_age} = “13”, 13,{Ex_grade} = “14” OR {Ex_age} = “14”, 14,{Ex_grade} = “15” OR {Ex_age} = “15”, 15,{Ex_grade} = “16” OR {Ex_age} = “16”, 16,{Ex_grade} = “17” OR {Ex_age} = “17”, 17, {Ex_grade} = “18” OR {Ex_age} = “18”,18, NULL )
I am finding that a lot of solutions to common problems like this, dynamic fields, etc., seem to require the developer to commit common programming no-no’s like this (convoluted conditional logic). i am also having to rely heavily on ifelse() for a couple dynamic fields that are to change based on user input for these tables, eg.,:
“Row field”
ifelse(${RowParameter} = “Sex”, Sex, ${RowParameter} = “Age”, ifelse({Ex_age} = “”, “Unknown”, {Ex_age}), ifelse({Ex_grade} = “”, “Unknown”, {Ex_grade}))
Not only are these solutions not very scalable, but they are not as automated as they could be if, for example, we could leverage things like string placeholders or the “this” property like in javascript, instead requiring a lot of manual updates and maintenance as the dashboard grows in scale. Are there any features you can think of that can handle these kinds of things more dynamically and efficiently?