Skip to Content
author's profile photo Former Member
Former Member

Sorting with null database values

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 08:13 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 10:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.