subtracting value of one textbox from another on my report

  • Hi,

    I have 2 textboxes on my report for example text1 and text2.

    text1 has an expression: Count(Fields!myfield1.value)

    text2 has an expression: Count(Fields!myfield2.value)

    This works and shows up on my report correctly.

    I created a 3rd textbox and wanted to minus text1 from text 2 like this:-

    Count(ReportItems!text1.value - ReportItems!text2.value)

    When I try and do this in text3 it comes up with the error:-

    report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope

    Not sure how I can get rid of this.

    Thanks.

  • HI

    why not simply use the expresion in textbox3

    Count(Fields!myfield1.value)-Count(Fields!myfield2.value)

    Thanks

Viewing 2 posts - 1 through 1 (of 1 total)

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