August 23, 2017 at 11:29 am
I am trying to add an interactive sort to a table using an expression that returns a percentage however the sorting is not in the desired order I am expecting and I have not been able to figure out why this is happening or how to resolve it. The values should sort high to low or in the reverse order rather than what it is shown below. My expression for sorting is as follows. (Fields!Labor_Sell.Value - Fields!Labor_Cost.Value) / Fields!Labor_Sell.Value
August 23, 2017 at 4:51 pm
lucaskhall - Wednesday, August 23, 2017 11:29 AMI am trying to add an interactive sort to a table using an expression that returns a percentage however the sorting is not in the desired order I am expecting and I have not been able to figure out why this is happening or how to resolve it. The values should sort high to low or in the reverse order rather than what it is shown below. My expression for sorting is as follows. (Fields!Labor_Sell.Value - Fields!Labor_Cost.Value) / Fields!Labor_Sell.Value
I know little of SSRS but it would appear that you're sorting on the display value (which is a string) rather than on the mathematical value.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 23, 2017 at 6:14 pm
LAs Jeff zaid - your value is being sorted as text. You need to change the column data type to a percentage for that column.
-- Itzik Ben-Gan 2001
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply