Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

SSRS 2005 - Sum if a particular field falls into specific criteria

$
0
0
Hi all,I am very new to reporting services.I have a report like the one below with 6 columns:[b]Name Bills Disbs WIP Exposure Client[/b]Smith 5,000 1,000 1,000 7,000 500Jones 10,000 5,000 5,000 20,000 1,500Roberts 12,000 6,000 3,000 21,000 750Beckham 15,000 5,000 20,000 40,000 1,000[b]Exp >25k [u]15,000 5,000 20,000 40,000 1,000[/u]Exp <25k>10k [u]22,000 11,000 8,000 41,000 2,250[/u]Exp <10k [u]5,000 1,000 1,000 7,000 500[/u][/b]What i am trying to acheive is the several subtotals. Basically i need to total each column based on the Exposure value. For example, if the Exposure value is less than 10,000 i want to only total each column if the Exposure meets this criteria. Likewise, if the Exposure value is over 25,000 i want a seperate subtotal for these entries. As an example, I have tried using the following expression but it does not work:=Iif(Fields!Exposure.Value<10000, SUM(Fields!Disbs.Value),0)I would be grateful for any help on this. Thanks in advanced.

Viewing all articles
Browse latest Browse all 2791

Trending Articles