Crystal Report: Display 0.00 for duplicate values

前端 未结 2 659
余生分开走
余生分开走 2021-01-29 05:08

I am making a crystal report which displays values from database. Now the values from db contains duplicate values.

I need that duplicate values should be suppressed and

2条回答
  •  遇见更好的自我
    2021-01-29 06:06

    Do not check Suppress if Duplicated.. You need to write formula for Display String.

    For example,

    if PreviousIsNull ({object.field}) then 
      cstr({object.field})
    else
    if CurrentFieldValue=previous({object.field}) then 
       '0.00' 
    else 
      cstr({object.field})
    

    EDIT:

      if PreviousIsNull ({object.field}) then 
          cstr({object.field})
        else
        if {object.field}=previous({object.field}) then 
           '0.00' 
        else 
          cstr({object.field})
    

提交回复
热议问题