I have a report that groups based on the following formula:
When I run the report, the group header display as:
2002/2003
2003/2004
For each group, I need to display the total commission for a month. I have placed a formula in the group header that looks like this:
When I run the report I only get numbers for 2002/2003. Why doesn't it sum for 2003/2004 also?
Code:
If year({Command.invdte}) in year(currentdate) - 2 to year(currentdate) -1 Then
ToText(year(currentdate) - 2,0,"") & "/" & ToText(year(currentdate) -1,0,"")
else
If year({Command.invdte}) in year(currentdate) - 1 to year(currentdate) Then
ToText(year(currentdate) - 1,0,"") & "/" & ToText(year(currentdate),0,"")
When I run the report, the group header display as:
2002/2003
2003/2004
For each group, I need to display the total commission for a month. I have placed a formula in the group header that looks like this:
Code:
If GroupName ({@Years}) = ToText(year(currentdate) - 2,0,"") & "/" & ToText(year(currentdate) -1,0,"") Then
Sum ({@Month_1_Top}, {@Years})
Else
If GroupName ({@Years}) = ToText(year(currentdate) - 1,0,"") & "/" & ToText(year(currentdate),0,"") then
Sum ({@Month_1_Bottom}, {@Years})
When I run the report I only get numbers for 2002/2003. Why doesn't it sum for 2003/2004 also?