mtownbound
Technical User
Okay, I need to sum the distinct sales ID count at the dept, city, and state levels so here's my sample sales table:
[pre]Item ID Dept City State Region
Bicycle 001 Sports Atlanta GA East
Helmet 001 Sports Atlanta GA East
Watch 002 Home Atlanta GA East
Shoes 003 Home Atlanta GA East
Pants 003 Home Atlanta GA East
Shirt 003 Home Atlanta GA East
Mower 004 Lawn Atlanta GA East
Skates 005 Sports Atlanta GA East
Plates 001 Home Decatur GA East
[/pre]
And this is how I need to report:
[pre]State Sales
GA
Atlanta
Sports 2
Home 2
Lawn 1
Atlanta Total Sales 5
Decatur
Home 1
Decatur Total Sales 1
GA Total Sales 6
[/pre]
Using the "ControlSourece=1, Running Sum........" method to get the distinct count of the sales ID's at the dept level, but can't get the sum right at the city and state levels. I get 1 if I go Running sum=None.
Thanks!!
[pre]Item ID Dept City State Region
Bicycle 001 Sports Atlanta GA East
Helmet 001 Sports Atlanta GA East
Watch 002 Home Atlanta GA East
Shoes 003 Home Atlanta GA East
Pants 003 Home Atlanta GA East
Shirt 003 Home Atlanta GA East
Mower 004 Lawn Atlanta GA East
Skates 005 Sports Atlanta GA East
Plates 001 Home Decatur GA East
[/pre]
And this is how I need to report:
[pre]State Sales
GA
Atlanta
Sports 2
Home 2
Lawn 1
Atlanta Total Sales 5
Decatur
Home 1
Decatur Total Sales 1
GA Total Sales 6
[/pre]
Using the "ControlSourece=1, Running Sum........" method to get the distinct count of the sales ID's at the dept level, but can't get the sum right at the city and state levels. I get 1 if I go Running sum=None.
Thanks!!