SUM Conditional Group in Crystal Reports

I do some accounting reports and summarize my different currencies using the formula

IE

CanadianCommissionFormula

if {myData;1.CurrencyType} = "CDN" then
    {myData;1.Commission} 
else
    0


CanadianCommissionSum

SUM({@CanadianCommissionFormula})

Then I just show the CanadianCommissionSum at the bottom of the report, and everything was great.

I just stumbled upon a requirement to do this, but grouped in Sales Rep. I tried using my previous formula, but these are the sums for the whole report. Is there an easy way to summarize this based on which group it is in?

+3
source share
3 answers

You probably understood this a year ago, but just in case, try the following:

  • Change the formula CanadianCommissionSum to

    SUM({@CanadianCommissionFormula},{SalesRep})

  • SalesRep.

.

+8

, Crystal Report, :

SUM({@CanadianCommissionFormula})

... .

0

, rexem , , , . , , .

, Sales Rep, reset . , .

, .

0

Source: https://habr.com/ru/post/1719757/


All Articles