Quantcast
Channel: Answers by "Valentino Vranken"
Viewing all articles
Browse latest Browse all 33

Answer by Valentino Vranken

$
0
0
So the data should get sorted numerically, not alphabetically, and **trailing zeroes after the decimal separator are significant**, interesting! You can actually do that but you'll have to create a numeric field that represents your string and it has to be an integer. Here's how you would do that using SQL: with TheData as ( select '12.1' val union all select '12.2' union all select '12.3' union all select '12.4' union all select '12.5' union all select '12.6' union all select '12.7' union all select '12.8' union all select '12.9' union all select '12.10' union all select '12.11' ) select val, CONVERT(int, REPLACE(val, '.', '')) valNumeric from TheData Now use the newly-created field in the interactive sort setting. In case you can't modify the query, here's the expression to do it through a calculated field in the dataset: =CInt(Replace(Fields!val.Value, ".", ""))

Viewing all articles
Browse latest Browse all 33

Trending Articles