SQL2005 Reporting Conditional Formatting

  • Hi, I am new to SQL and working on a Report, I have issue while generating Report that I can not Negate Values in Report, can any one help me out this issue?

    I want if Transaction Type (TR_Typecode) is Return (Retn) it should reflect -values in Unit Price, else show Normal Values.

    ++++++++++++++++++++++++++++++++++++++++++

    TR_Typecode Unit Cost Qty. Total

    Issu 4.5 2 9

    Retn -4.5 1 -4.5

    ===========================================

  • =IIF(TR_Typecode = "Retn",Unit_Price * (-1), Unit_Price)

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

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