Hello all.
I want to create a formula based on a parameter to let users choose whether or not to group the report by a date field or a text field.
The basics are easy and I already have the formula created that allows for the group to work for all the text fields I want, however, I can't have the formula results be two different data types.
For example I have:
If {field 1}= "X" then "Text 1"
else if {field 1}= "Y" then "Text 2"
else {Date field}
I get an error in my formula because the final else statement is expecting another text field. I can change the date to text but then it doesn't sort properly.
Is there any way to make Crystal allow multiple data types to be displayed?
If not, is there a way to skip a group all together?
For example
Group 1 sorts by the text fields if field 1 is X or Y
Group 2 sorts by Date
Then I could have group 1 skipped entirely if I need to show a date?
I know that I can conditionally suppress the group, but it still sorts by the text field.
Thanks.
I want to create a formula based on a parameter to let users choose whether or not to group the report by a date field or a text field.
The basics are easy and I already have the formula created that allows for the group to work for all the text fields I want, however, I can't have the formula results be two different data types.
For example I have:
If {field 1}= "X" then "Text 1"
else if {field 1}= "Y" then "Text 2"
else {Date field}
I get an error in my formula because the final else statement is expecting another text field. I can change the date to text but then it doesn't sort properly.
Is there any way to make Crystal allow multiple data types to be displayed?
If not, is there a way to skip a group all together?
For example
Group 1 sorts by the text fields if field 1 is X or Y
Group 2 sorts by Date
Then I could have group 1 skipped entirely if I need to show a date?
I know that I can conditionally suppress the group, but it still sorts by the text field.
Thanks.