Quantcast
Channel: SCN : All Content - SAP Enterprise Portal
Viewing all articles
Browse latest Browse all 3876

Sorting error while Refreshing Crystal Report

$
0
0

Sorting error while refreshing Crystal Report

 

Hi

 

My requirement is for the latest month i need the record number in the column (Row number ) in detail section, I have created a sort formula

 

Sort Formula  will be the concatenation of month + Employee Id + Salary sorting in Ascending order.

 

Row number column Formula

 

if date({Month End Date})= date({?End Date})
then
(
numbervar i =1;
i:=i+1;
i;
)

 

 

The formula is working fine and sorting is working properly for the first time, When i refresh the report again with different parameters the Row number column is not working according to the sort.

 

Month,         Employee, salary, Row number

02/28/2015   2356           11            0

02/28/2015   2357           12            0

03/31/2015    2358          0.1           1

03/31/2015    2359          2.3            2

03/31/2015    2360         5.1             3

03/31/2015    2361         6.5             4

 

After refreshing the report I am getting the Row number not in Sort order

 

 

Month,         Employee, salary, Row number

02/28/2015   2356           11            0

02/28/2015   2357           12            0

03/31/2015    2358          0.1           3

03/31/2015    2359          2.3           4

03/31/2015    2360         5.1             1

03/31/2015    2361         6.5            2

 

Thanks


Viewing all articles
Browse latest Browse all 3876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>