Formula for Suppressing Field if duplicate in Crystal Reports

后端 未结 4 1873
渐次进展
渐次进展 2021-01-05 04:16

I have a view which shows data on crystal reports where I have fields like tariff,rental,shares,gross and net.My problem is if someone changes the tariff in database it woul

相关标签:
4条回答
  • 2021-01-05 04:38

    You have to write the formula into field suppress. (No need on suppress if duplicated)

    On Rental Field {ID} = previous({ID}) and {rental} = previous({rental})

    If ID and Rental are same then only the Report will suppress Rental.

    I guess this will work for you.

    0 讨论(0)
  • 2021-01-05 04:45

    I had to make a slight change to the formula in the solution by Janarthanan by adding parenthesis to make it work with Crystal XI.

    I used:

    {ID}=previous({ID}) and {rental}=previous({rental})
    

    this formatting variation, which is presented in the edited question, helped me to solve a similar problem.

    0 讨论(0)
  • 2021-01-05 04:47
    1. In Crystal Reports, right-click on the Details section and select Section Expert.

      1. In the Section Expert dialog box, select the X + 2 button beside the Suppress command. The check box must remain unselected for this formula to work.
      2. In the Formula Editor dialog box, create a conditional formula containing the Next function to evaluate the records for duplicate values and to suppress the Details line

      example: {Table.Databasefield}=Previous({Table.Databasefield})

    0 讨论(0)
  • 2021-01-05 04:51

    Put this in suppress formula of field to hide.

    if {myTable.ID} = previous({myTable.ID}) then true else false

    0 讨论(0)
提交回复
热议问题