Sorting by a custom calculated field on a report
I have a calculated field on a custom form called "CalcPriScore"
That field is a sorted column on a report. It is string though, rather than numerical so it isn't sorting properly. How can that column to be sorted numerically instead?
I have this text mode for the CalcPriScore (Prioritization Score) column:
displayname=Prioritization Score (max 30)
linkedname=direct
namekey=CalcPriScore
querysort=DE:CalcPriScore
sortOrder=1
sortType=desc
textmode=true
valueexpression=ROUND({DE:CalcPriScore},1)
valuefield=CalcPriScore
valueformat=customDataLabelsAsString
I tried valueformat=Int, but that didn't work either.
As you can see in the screenshot of the prioritization score column from my report, the top item is rated 9.5 and is at the top because 9 is greater than 2 when a string, vs looking at 9.5 vs 22.7 as numbers.