I need to calculate by parameter. I have a grouping footer and I am inserting your formula into it so it will count rows.
Every row is 1. I need Number of rows per group.
My first group has 17 records and my formukla says 17
My second group has 1 record and formula says 18 (should say 1)
My third group has 1 records and formula says 19 (should say 1)
every group has a footer/header
------------------------------------------
Executives BusinessUnit CostCenter
text text text
-------------------------------------------
Bieler Garry 2Grt Unique01
Unique02
Unique03
SubTotal BusinessUnits:1 CostCenters:3
3Grt Uniq01
Uniq02
SubTotal BusinessUnits:1 CostCenters:2
Total BusinessUnits:2 CostCenters:5
I just made up a little table and plugged in the values you provided.
Then in the report, I did the first grouping on Business Unit, with both a Header and Footer. Then I did a second grouping on Cost Centre but NO Header and NO Footer.
This was the result...
Executives Business Unit Cost Center
Bieler Gary 2Grt Unique01
Unique02
Unique03
CostCenters: 3
3Grt Unique01
Unique02
CostCenters: 2
Now, I probably don't have the table designed the way you have it, so if I try to count Business Units, I get multiples (a count of three 2Grt, and a count of two 3Grt) but I think changing the grouping will give you the result you need.
I haven't analyzed your IIf statement because I worked on this grouping.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.