|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 6:31 PM
Points: 10,
Visits: 33
|
|
I have a dataset column in a table region and I want to count on a condition with an expression in the header textbox but expression returning could this be a scope problem since the textbox is not bound to dataset. Even though textbox is bound to the dataset.
=Count(ReportItems!Test.Value = "Pass") just counts all the rows - this is in a textbox in the header of the report
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 4:11 AM
Points: 1,474,
Visits: 2,344
|
|
Does this do it?
=Sum(iif(ReportItems!Test.Value = "Pass", 1, 0))
Cheers Gaz
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 8:44 AM
Points: 10,
Visits: 123
|
|
| D'oh... never mind <post deleted>
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 6:31 PM
Points: 10,
Visits: 33
|
|
Sum(IIF(ReportItems!Test.Value Like "2011 Pass",1,0)) Im using a textbox in the header so there are scope issues if I use the Fields collection.
Thanks
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 6:31 PM
Points: 10,
Visits: 33
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 6:31 PM
Points: 10,
Visits: 33
|
|
Sum(IIF(ReportItems!Test.Value Like "2011 Pass",1,0)) Im using a textbox in the header so there are scope issues if I use the Fields collection.
Thanks Ten Centuries
|
|
|
|