skarru
asked on
Dynamic changing of row grouping using vaules from parameter
Hi All,
I want to change the row grouping values(in a matrix report) dynamically depending on the values of a parameter.
For EX. I Have a column grouping for category for total price in a matrix report and i have a row grouping on States . But i want to change the row grouping from states to customers depending on the value passed in the parameter. How can i do that?
- Karru
I want to change the row grouping values(in a matrix report) dynamically depending on the values of a parameter.
For EX. I Have a column grouping for category for total price in a matrix report and i have a row grouping on States . But i want to change the row grouping from states to customers depending on the value passed in the parameter. How can i do that?
- Karru
For that you need to write a SQL SP that will take that report parameter and use it inside the SQL SP to build dynamic SQL code that you execute from there.
ASKER
The fields i have taken in matrix are from a sp...so my doubt is will the report accept value from another sp for the same field?
Ok, so you should modify that SP to include the new parameter and if not null build dynamic code then execute with new group by.
ASKER
This is my stored procedue can you please let me know how to modify it according to group. SP.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.