I want to set up dynamic parameter in CR XI. Field is 4 or 5 characters, however I want to only use left 2 characters as dynamic parameter as well as for use as grouping on the report. Any thoughts on how best to do this? Thanks
For the dynamic parameter, you should use a command, using a left function--depends upon your database though, which you haven't identified.
Select left(table.field,2)
from table
Or maybe it would be:
select {fn left(table.field,2)}
from table
Use this to populate the dynamic parameter picklist. Do NOT, however, reference the field in the main report, and do not link the command to any tables in the main report. There you should just use a formula for your group:
select {fn left("table"."field",2)} "Two Chars"
from "table"
...but I think you have to be using an ODBC driver for this to work. For a native driver (Oracle Server), I think you do have to use the substring function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.