Count is returning a count of all rows

  • 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

  • Does this do it?

    =Sum(iif(ReportItems!Test.Value = "Pass", 1, 0))

    Cheers

    Gaz

  • D'oh... never mind <post deleted>

  • 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

  • Thanks is works

  • 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

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply