I'm back with a question about the feedback card application.
For my final chart, I have a stored procedure with a dynamically built pivot query that has columns named Col1, Col2, Col3, ... Col 30, CardDate and FormattedCardDate. The columns either have data for a specific card feedback type (up to 30), as selected on the report setup form.
I also have another dataset with the display titles for the selected feedback types with the following columns Feedback ID, DisplayTitle and ColName.
I have tried to use a lookup for the legend like:
=Lookup(Fields!Col1.UniqueName, Fields!ColName.Value, Fields!DisplayTitle.Value, "dsGetLabels")
With the following data:
ID DisplayTitle ColName
================================================
1 Room Cleaned Col1
4 Kitchenette Counter Col2
...
But it only dislpays Col1 for Col1, not "Room Cleaned" as in the column name dataset.
How do I make the lookup work? Barring that, how can I add the correct column names to my stored procedure, but still access the data?
As an aside, I can pass the correct column names to the SSRS Chart as a parameter, but how would I display them as a legend?