I have a problem with trying to get a total of a conditional value. My data output looks as follows:
HEAD OFFICE BRANCH (group1)
(Group 2 below)
Ford Mustang 2001 Blue Excellent
Toyota Raider 2005 Red Good
BMW 5.30 i 2006 Blue Excellent
Mazda MX5 2003 Yellow Good
WESTERN CAPE BRANCH
Ford Fiesta 16i 2002 Blue Good
Renault Clio 2.0d 2005 Red Poor
Nissan Hardbody 2001 Pink Good
I have been trying to find a way to get a value which would be a total number of blue cars for the Branches (group1) as well as the total number of blue cars for the whole report but to no avail with my limited experience. I have read up on people creating extra columns that does counts and sums etc but I am still struggling with aggregate inside aggreagate errors.
Please help me
Mike
Hi,
what about doing a plain SUM(IIF(Fields!autom.Value ="Red",1,0)) etc. in the group footer ?
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de|||Hi Jens,
Thanks for the reply. I should have maybe pointed out that I have used a list to do the grouping and can't seem to find a group footer. Is there another thing that I can try?
Sorry if this is a bit of a newbie question.
Mike
No comments:
Post a Comment