AnnieRider
MIS
Hi
My report details multiple histories for individual clients. I have to pick out certain histories so each history has the following formula:
=IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0)
The histories are grouped by the Client they belong to and I have to denote which Clients have any of the certain histories. I've done this by inserting a total for each client, so:
=SUM(IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0))
and then using an expression to show clients where the above is more than zero, like so:
=iif(SUM(IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0)) >=1,1,0)
To make life even more difficult I need to show the sum of the Clients who have at least one of the certain histories as a percentage of the total Clients in the report!
The problem being that I can't even find a way to do the sum, before even thinking about the percentage!
I'm wondering if I've got too many formulas because what I came up with is a Sum of the iif(SUM(IIf and I imagine that's probably expecting too much!
Many thanks
Annie
My report details multiple histories for individual clients. I have to pick out certain histories so each history has the following formula:
=IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0)
The histories are grouped by the Client they belong to and I have to denote which Clients have any of the certain histories. I've done this by inserting a total for each client, so:
=SUM(IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0))
and then using an expression to show clients where the above is more than zero, like so:
=iif(SUM(IIf(Fields!DateStart.Value< #7/1/2008# And (Fields!HistoryType_Ref.Value = "G"
or Fields!HistoryType_Ref.Value = "R"), 1,0)) >=1,1,0)
To make life even more difficult I need to show the sum of the Clients who have at least one of the certain histories as a percentage of the total Clients in the report!
The problem being that I can't even find a way to do the sum, before even thinking about the percentage!
I'm wondering if I've got too many formulas because what I came up with is a Sum of the iif(SUM(IIf and I imagine that's probably expecting too much!
Many thanks
Annie