epicazo
asked on
total text column in ssrs
I Have a table that has text fields and I want to Total only those records that don't contain the "2009-02" format in them. Is it possible in SSRS?
I tried this but it doesn't work.
=IIF(Fields!Month4.Value <"2009",Fields!Month4.Valu e,Sum(cint (Fields!Mo nth4.Value ))
=IIF(Fields!Month4.Value <"2009",Fields!Month4.Valu e,Sum(cast (Fields!Mo nth4.Value as int))
I tried this but it doesn't work.
=IIF(Fields!Month4.Value <"2009",Fields!Month4.Valu
=IIF(Fields!Month4.Value <"2009",Fields!Month4.Valu
ASKER
field is called MONTH1,MONTH2,MONTH3, etc... and these are NVARCHAR fields
do you want a total at the bottom of each column?
ASKER
I want to summarize each column except for the row that contains 2009-02, 2009.03, etc..
your example does not show me what you are wanting to do. You have 2011 in the example and no real way of showing the layout of want you are doing. If you are trying to not read a 2009-2 then the best way would be in your query and then just have the report print out the results.
ASKER
I hope I am able to explain myself on this...
I am in reporting services and the columns I am trying to get a SUM on MONTH1--MONTH24 and as depicted in the image above my data output is in text because I am running a crosstab SP to get the results for a 24 month period to include the HEADER (The header is the row of data that contains YYYY-MM) it is written then way becuse every month the header will be different.
I want a summary on everything, except those that contain YYYY-MM
I tried this syntax but it doesn't work for me:
=IIF(Fields!Month4.Value ="2009-03",Fields!Month4.V alue,Sum(c int(Fields !Month4.Va lue))
Thanks...
I am in reporting services and the columns I am trying to get a SUM on MONTH1--MONTH24 and as depicted in the image above my data output is in text because I am running a crosstab SP to get the results for a 24 month period to include the HEADER (The header is the row of data that contains YYYY-MM) it is written then way becuse every month the header will be different.
I want a summary on everything, except those that contain YYYY-MM
I tried this syntax but it doesn't work for me:
=IIF(Fields!Month4.Value ="2009-03",Fields!Month4.V
Thanks...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Questions could be deleted.
do you want a total at the bottom?
Please explain again.