Ties, I was just wondering if you could help with the final step on this for me? here's the scenario...
Again using 8.3 Report studio, I have a list report which is based on query 1. Query 1 is a join between Q2 and Q3, using outer joins on 5 data items, plus lots of additional calcuated data items. For 3 of these 5 joined data items, Q1 uses a coalesce function to get a unique list of items from Q1 and Q2, e.g. Coalesce([Q1].[item1],[Q2].[item1])
In the report I am required to display always the first 2 joined data items from Query1, and then optionally one of the 3 remaining joined data items, plus all the additional calculated data items from Query1. I have prompt items for all 3 optional data items, using html to restrict the user to selecting a value from only 1 of the 3. Instead of using one data item with a case statement to determine which of the 3 to use (as this requires the user to submit values for all 3 prompts, which is impossible due to the html), the report therefore contains all joined data items, the last three of which are layout calcs conditionally rendered by referencing the appropriate prompts, ie. if paramdisplayvalue(prompt for data item 3) is not null then render.
The report runs ok, but a problem arises with duplication of the two mandatory joined data items. Even if none of the last 3 joined data items are rendered in the report, the two mandatory joined items are repeated by a factor of the number of changes in one of the last 3 joined items. e.g data items 1 and 2 are duplicated if they are related to more than one data item 3,4 or 5.
I have tried to group on all 5 joined data items in the report to no avail. I believe the problem is that the rendering doesn't mean the items aren't included in the query level. The obvious answer therefore is that I should just have one data item, using a statement to decide which of the final 3 joined data items to use...but this means the user is prompted for inputs to all three whereas I want them to simply select a value for one of the three and use this decision to decide which columns to render in the report.
Does that make any sense at all?
Is there a way to avoid layout calcs, such as another function that references the paramdisplayvalues at runtime so the user just has to select an input for one fo the three prompts?
Hope you, or another kind soul can help as my computer is edgeing nearer the window!!!
Thanks
Dan