Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew_B
Contributor II
Contributor II

Totals by Customer in Straight table

Hi there
we are looking to determine the total stops (or group of deliveries), by a customer
 
this will be represented in a straight table
 
Fields are
dimensions  - CustomerID, StopDateId, DeliveryWeekday
 
Below are the columns and the formulas we were able to figure out
Customer ID    - dimension
DeliveryWeekday   - dimension 
Count of Stops for each weekday ( aggr(count( StopDateID), CustomerID,DeliveryWeekday))  - which is giving the same total 
 
the challenge is
Total count of stops by Customer
We attempted =sum ( aggr(count(  StopDateID), CustomerID)), however, this will only give us a value on 1 of the Delivery days
 
our goal is to have the total count on each delivery day
 
below is an image of the table  
 
Test total.jpg
 
 
 
 
Appreciate the help
1 Solution

Accepted Solutions
Lisa_P
Employee
Employee

Add in the NoDistinct qualifier before the Count

View solution in original post

2 Replies
Lisa_P
Employee
Employee

Add in the NoDistinct qualifier before the Count

Andrew_B
Contributor II
Contributor II
Author

Appreciate this

its perfect

Thanks for your help