Link to home
Start Free TrialLog in
Avatar of skarru
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
Avatar of lcohan
lcohan
Flag of Canada image

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.
Avatar of skarru
skarru

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.
Avatar of skarru

ASKER

This is my stored procedue can you please let me know how to modify it according to group. SP.txt
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial