brendanj68
IS-IT--Management
Hi, am running CR v9 and SQL 2000.
A report change has been requested which I'm uncertain is possible but I have to try and look into it. The up-shot is that the report has a user defined sort option (which works well and sorts data at a top level), but now I need to try and introduce two levels of sorting. The report structure is as follows:
RH - <data>
PH - <data>
GH1 - {@Sort Choice} - Suppressed
GH2 - opportunity_id - Suppressed
GH3 - Company_Name - Suppressed
GH4 - Create_Date - Suppressed
GH5 - Status - Suppressed
GH6 - Region - Suppressed
D - Suppressed
GF6 - Suppressed
GF5 - Suppressed
GF4 - Suppressed
GF3 - Suppressed
GF2 - <data>
GF1 - Suppressed
What the user wants is that Company_Name is always sorted alphabetically, while maintaining a choice within {@Sort Choice} which is
if {?Sort Choice} = 'By Region' then {MIS_Opportunity_Personnel_PS.LA_Region} else
if {?Sort Choice} = 'By Status' then {MIS_Opportunity_Personnel_PS.Status} else
if {?Sort Choice} = 'By Client Name' then {MIS_Opportunity_Personnel_PS.Company_Name} else
if {?Sort Choice} = 'By Date' then ToText ({MIS_Opportunity_Personnel_PS.Rn_Create_Date}, "yyyy-MM-dd"
else
{MIS_Opportunity_Personnel_PS.LA_Region}
Is it possible to force the first sort while maintaing a second 'option'? If you can help this would be a real bonus. Thanks in advance
A report change has been requested which I'm uncertain is possible but I have to try and look into it. The up-shot is that the report has a user defined sort option (which works well and sorts data at a top level), but now I need to try and introduce two levels of sorting. The report structure is as follows:
RH - <data>
PH - <data>
GH1 - {@Sort Choice} - Suppressed
GH2 - opportunity_id - Suppressed
GH3 - Company_Name - Suppressed
GH4 - Create_Date - Suppressed
GH5 - Status - Suppressed
GH6 - Region - Suppressed
D - Suppressed
GF6 - Suppressed
GF5 - Suppressed
GF4 - Suppressed
GF3 - Suppressed
GF2 - <data>
GF1 - Suppressed
What the user wants is that Company_Name is always sorted alphabetically, while maintaining a choice within {@Sort Choice} which is
if {?Sort Choice} = 'By Region' then {MIS_Opportunity_Personnel_PS.LA_Region} else
if {?Sort Choice} = 'By Status' then {MIS_Opportunity_Personnel_PS.Status} else
if {?Sort Choice} = 'By Client Name' then {MIS_Opportunity_Personnel_PS.Company_Name} else
if {?Sort Choice} = 'By Date' then ToText ({MIS_Opportunity_Personnel_PS.Rn_Create_Date}, "yyyy-MM-dd"
{MIS_Opportunity_Personnel_PS.LA_Region}
Is it possible to force the first sort while maintaing a second 'option'? If you can help this would be a real bonus. Thanks in advance