I am using CR 16 sp2
I want to create a parameter report based on 2 selections within a parameter called " @Analyse By ", currency or date by which the report will flip the order of the grouping, its a neat way of having one report and showing in different ways
So I have Group_Lvl1
if {?Analyse By} = 'Currency' then
{Currencies.SwiftCode}
else
{@Date_TransactionDate}
and Group_Lvl2
if {?Analyse By} = 'Currency' then
{@Date_TransactionDate}
else
{Currencies.SwiftCode}
WHERE {@Date_TransactionDate} is ToText(Date(1979,12,31) + {TransactionHeader.ActualDateNumber})
I had to put ToText on the above formula because my 2 group formula insisted on being in String format
The report flip fine BUT the trouble is it does not now sort in date order - it used to when the formula was in date format and not string
So how do I get around this?
I want to create a parameter report based on 2 selections within a parameter called " @Analyse By ", currency or date by which the report will flip the order of the grouping, its a neat way of having one report and showing in different ways
So I have Group_Lvl1
if {?Analyse By} = 'Currency' then
{Currencies.SwiftCode}
else
{@Date_TransactionDate}
and Group_Lvl2
if {?Analyse By} = 'Currency' then
{@Date_TransactionDate}
else
{Currencies.SwiftCode}
WHERE {@Date_TransactionDate} is ToText(Date(1979,12,31) + {TransactionHeader.ActualDateNumber})
I had to put ToText on the above formula because my 2 group formula insisted on being in String format
The report flip fine BUT the trouble is it does not now sort in date order - it used to when the formula was in date format and not string
So how do I get around this?