I have a main report pulling data from a Date Dimension table and am grouping on a formula that cals the first date of each month as DateTime. Within each group I have a set of subreports hitting a MSSQL Database using a Command. Within each command I have created a DateTime parameter which is passed into the Command which work fine individually.
I cannot get the grouping formula in the main report to pass to the subreport to be used as the Command's prompt. I've gone into the Change Subreport Links and bound the grouping formula to any specific datetime field and also tried to not link it to any field. Every way I've tried this, I've gone into the subreports' Record Selection Formula and set the formula to {?CommandPrompt}={?Pm-@GroupFormula}.
When I run the main report it prompts me to enter a value for all of the Subreports Command Prompt field. If I enter a specific month start datetime, the report runs fine but all other months are not pulling for the subreports.
How do I set that Command Parameter/Prompt to be the Grouping Formula linked to the subreport and run that way for each grouping without prompting the user to provide input??
Thanks
I cannot get the grouping formula in the main report to pass to the subreport to be used as the Command's prompt. I've gone into the Change Subreport Links and bound the grouping formula to any specific datetime field and also tried to not link it to any field. Every way I've tried this, I've gone into the subreports' Record Selection Formula and set the formula to {?CommandPrompt}={?Pm-@GroupFormula}.
When I run the main report it prompts me to enter a value for all of the Subreports Command Prompt field. If I enter a specific month start datetime, the report runs fine but all other months are not pulling for the subreports.
How do I set that Command Parameter/Prompt to be the Grouping Formula linked to the subreport and run that way for each grouping without prompting the user to provide input??
Thanks