Search code examples
sqlreporting-services

SSRS conditional formatting based off a sum


I am trying to do some conditional formatting in SSRS to set the cell to red if the sum is greater than 0, this is based off another sum which is already happening in the report.

This is what I have so far but it errors.

=IFF(SUM(IIF(LEN(TRIM(Fields!TransferStock.Value))=0, 1, 0),"RED","White"))

Thanks


Solution

  • This code will work for the result of whatever is in the textbox.

    =IIF(Me.Value < 0, "Red", "Black")

    enter image description here

    It's referenced in the following Microsoft article.