cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting with null database values

Former Member
0 Kudos

Hi All,

I have two fields.User name and Call type.In user name fields I have some blank values and corresponding call type are different.

Based on the call type i have to explicitly display username field .This is done by using formula and i grouped based on that formula.the fields are populated correctly.

Now I want the record to be sorted in Ascending Order based on User name.Now the problem is ,the records are sorted with blank fields in the top.I want the records to be sorted after the manually calculated fields are displayed.

Please can anyone help me out?

Thanks,

Hema

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hema,

Go to Report -> Group Expert

Select in Specified Order from second drop down, you will get a new Tab as Specified Order.

The values which are not blank will appear in the Named group drop down, if you want any name to be added, just click on new and, write group name, and select is equal to from the drop down and put the value you want to. Add as many names as you have. This solution help only when you know the names of the user and they are finite in number!!

Hope this helps!!

Thanks

-Azhar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

You can also write a formula field on User name as below and apply a group based on the formula field:

if IsNull({user name}) then " User name does not exist" 

else "" & {User name};

Make sure that you have checked the option for "Convert Database Null values to Default" and "Convert other Null values to Default" in Report options from File menu in Crystal Reports.

Hope this helps!!

Regards

Sourashree