Zolf
asked on
Add Matrix Columns - SSRS
hello there,
please have a look at the snapshot.i want to be able to add some of the columns together.i mean combine them into one.for example column Problem and Out of Service column i want to add their values together and have them under one column.please help i need this badly.
http://good-times.webshots.com/album/560907322SMsknK
cheers
zolf
please have a look at the snapshot.i want to be able to add some of the columns together.i mean combine them into one.for example column Problem and Out of Service column i want to add their values together and have them under one column.please help i need this badly.
http://good-times.webshots.com/album/560907322SMsknK
cheers
zolf
ASKER
what do you mean.
in the matrix column i put dbo.Bookht_Portal_State.EN
in the matrix row i use grouping like this dbo.Bookht_Terminal_Ports_
and in the matrix data i put the dbo.Bookht_Terminal_Ports_
my query is like this.
SELECT dbo.Bookht_Terminal_Ports_
dbo.Bookht_Terminal_Ports_
FROM dbo.Bookht_Terminal_Ports_
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_
dbo.City ON dbo.Bookht_Terminal_Ports_
WHERE (dbo.Bookht_Terminal_Ports
change you query like
(assuming that ENG_NAME is having the DESCRTION "Problem" Outofservice etc)
if it is someother field let me know which field holds that value
SELECT dbo.Bookht_Terminal_Ports_ Snapshot.c nt, case when dbo.Bookht_Portal_State.EN G_NAME = 'Out Of Service' then 'Problem' else dbo.Bookht_Portal_State.EN G_NAME end as ENG_NAME, dbo.City.City, dbo.bookht_TelCenter.Name,
dbo.Bookht_Terminal_Ports_ Snapshot.d ate
FROM dbo.Bookht_Terminal_Ports_ Snapshot INNER JOIN
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_ Snapshot.S TATE_ID = dbo.Bookht_Portal_State.ST ATE_ID INNER JOIN
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_ Snapshot.T elCenterID = dbo.bookht_TelCenter.pkid INNER JOIN
dbo.City ON dbo.Bookht_Terminal_Ports_ Snapshot.C ityID = dbo.City.pkid
WHERE (dbo.Bookht_Terminal_Ports _Snapshot. date BETWEEN @startdate AND @enddate)
(assuming that ENG_NAME is having the DESCRTION "Problem" Outofservice etc)
if it is someother field let me know which field holds that value
SELECT dbo.Bookht_Terminal_Ports_
dbo.Bookht_Terminal_Ports_
FROM dbo.Bookht_Terminal_Ports_
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_
dbo.City ON dbo.Bookht_Terminal_Ports_
WHERE (dbo.Bookht_Terminal_Ports
ASKER
thanks mate that worked by manipulating the sql server.can i do this directly in the Visual studio.
Also I want to know how can i show the column header when i scroll down the page.this feature we have in table.but i dont see this in matrix.how can i do this.please help.
thanks once again mate.
right click on the group --> Edit group -> there is an option(checkbox) which will say display column header while scrolling or something like that...check that out
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks mate.your help was very helpful.I appreciate your help and time.
cheers
zolf
glad that iam helpful...:-))cheers
ASKER
jaiganeshsrinivasan
i have modifed your query to combine more columns.is it possible to change their headings
SELECT dbo.Bookht_Terminal_Ports_
WHEN dbo.Bookht_Portal_State.EN
WHEN dbo.Bookht_Portal_State.EN
ELSE dbo.Bookht_Portal_State.EN
dbo.Bookht_Terminal_Ports_
FROM dbo.Bookht_Terminal_Ports_
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_
dbo.City ON dbo.Bookht_Terminal_Ports_
WHERE (dbo.Bookht_Terminal_Ports
in the query ? or in your report ? if in your report what do you want to change to ?
ASKER
in my report i want to see User instead of active user in the Column header
use this.....
SELECT dbo.Bookht_Terminal_Ports_ Snapshot.c nt,
CASE WHEN dbo.Bookht_Portal_State.EN G_NAME = 'Out Of Service' THEN 'Problem'
WHEN dbo.Bookht_Portal_State.EN G_NAME = 'Under Construction' THEN 'User'
WHEN dbo.Bookht_Portal_State.EN G_NAME = 'Bucht Released' THEN 'Ready To Use',
WHEN dbo.Bookht_Portal_State.EN G_NAME = 'Active User' THEN 'User'
ELSE dbo.Bookht_Portal_State.EN G_NAME end as ENG_NAME, dbo.City.City, dbo.bookht_TelCenter.Name,
dbo.Bookht_Terminal_Ports_ Snapshot.d ate
FROM dbo.Bookht_Terminal_Ports_ Snapshot INNER JOIN
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_ Snapshot.S TATE_ID = dbo.Bookht_Portal_State.ST ATE_ID INNER JOIN
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_ Snapshot.T elCenterID = dbo.bookht_TelCenter.pkid INNER JOIN
dbo.City ON dbo.Bookht_Terminal_Ports_ Snapshot.C ityID = dbo.City.pkid
WHERE (dbo.Bookht_Terminal_Ports _Snapshot. date BETWEEN @startdate AND @enddate)
SELECT dbo.Bookht_Terminal_Ports_
CASE WHEN dbo.Bookht_Portal_State.EN
WHEN dbo.Bookht_Portal_State.EN
WHEN dbo.Bookht_Portal_State.EN
WHEN dbo.Bookht_Portal_State.EN
ELSE dbo.Bookht_Portal_State.EN
dbo.Bookht_Terminal_Ports_
FROM dbo.Bookht_Terminal_Ports_
dbo.Bookht_Portal_State ON dbo.Bookht_Terminal_Ports_
dbo.bookht_TelCenter ON dbo.Bookht_Terminal_Ports_
dbo.City ON dbo.Bookht_Terminal_Ports_
WHERE (dbo.Bookht_Terminal_Ports
ASKER
thanks mate.
cheers...
assuming that you are using column group i think that can be done...