Average Calculation less than Trend Points during time period
Why is my Average Calculation of 2.84 less than all of the Trend Points.
Best Answer
-
Your cards seem to agree on an average punch score of 2.84-2.85. Eyeballing your table card, this appears to be correct, because most of your tickets are in the 2-3 range, with less than 500/9K over 4.
That narrows the problem to the line graph.
- I think what Ashleigh was suggesting that If you replace Superintendent with your StatusDate field on this table card (no aggregation) and switch to 'by month', you should be able to get a table version of your line graph. Does that table version agree with your line graph, or is closer to the 2.8 range of values we'd expect?
- Depending on where the values fall, it would be theoretically possible to get monthly averages that are higher than the overall average (see example at bottom). This seems unlikely based on the size of your data, but if you wanted better visibility, you could switch your table card to a pivot table, and add the statusdate to the columns field (switching the graph to 'by month'). Then you could see the punch date by month by supervisor and see if there are any weird things going on in the values by month. (Only Case Coventry punched tickets in October, say)
- I'd also be curious to see the line graph adding "Superintedent" as the series, so you can see if their individual punch scores are averaging in the same way as the pivoted table card
- Since it's the line graph card that appears to disagree, it's probably worth double checking your filters on that card one more time, and that you're using the same BeastMode on that card as the others
- Since your calculation is using "count distinct" in the denominator and numerator, it could also be theoretically possible for the monthly and total averages to be different than the monthly averages if the "distinctness" is distributed differently across months than it is across supervisors:
In this example dataset, the count(distinct Sales)/count(distinct Weight) would be 2/1 for each supervisor and 1/3 for each month (very different!). The overall average would be 2/3, another very different average that appears to disagree with the by supervisor and by month trends.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0
Answers
-
@jtrollinger Can you please share some more details on how your cards are set up? It's difficult to give suggestions without understanding your data
0 -
All cards you see are using the same data set with the same filters.
Here are the two Beast Modes. After seeing both these side by side I think I see the answer but would like to hear your thoughts.
BEAST MODE for PUNCH SCORE =
10 * (COUNT(DISTINCT
SalesOrderNo
) / COUNT(DISTINCTsonum_wtnumber
))BEAST MODE for Score AVG =
COUNT(DISTINCT CASE WHEN
HdrParentItemCode
= 'ZPUNCH' ANDJT158_WTParent
= 'Y' THENsonum_wtnumber
END)/
COUNT(DISTINCT CASE WHEN
JT158_WTParent
= 'Y' THENSalesOrderNo
END)0 -
@jtrollinger Since you're using two beast modes with different definitions it's not realistic to expect them to match. Unless they were written using assumptions specific to your business, they don't seem to be comparable.
0 -
That's what I thought you were going to say. Let me try and reconcile the difference between the two.
0 -
My bad, This is the ONLY BEAST MODE BEING USED FOR Gibson Score Trend, Score Trend and SCORE AVG
BEAST MODE for PUNCH SCORE =
10 * (COUNT(DISTINCT
SalesOrderNo
) / COUNT(DISTINCTsonum_wtnumber
))Again Cards are pulling from the same data set a filtered the same using only the beast mode above.
0 -
@jtrollinger does either of your cards have anything in the sort option? Sometimes that can mess with stuff. Also, check if your 2.84 card is filtering by anything else directly in analyzer.
**If this answer solved your problem be sure to like it and accept it as a solution!
0 -
it may be useful to show the screenshot of the cards from the analyzer view.
**If this answer solved your problem be sure to like it and accept it as a solution!
0 -
Would someone be willing to jump on a TEAMS / WEBX to walk through this. I have provided all the information I possibly can but this issue would best be solved via talking it out with someone. Trying to type out the problem and explain the issue can only go so far on this forum.
0 -
Here are screen shots of Cards Filtered:
- ALL coming from same dataset
- all using PUNCH SCORE BEAST MODE = 10 * (COUNT(DISTINCT
SalesOrderNo
) / COUNT(DISTINCTsonum_wtnumber
)) - ALL Using Last 12 Weeks
0 -
@jtrollinger Couple things to check first to narrow out a few options:
- Can you open up each date field where it says Last 12 weeks and make sure each one is using the same column and that all settings are the same. Try changing the by month to different options just to see how the numbers change.
- Remove the sort from the table card to see if that changes anything.
- Change the table card to have the first column be Status Date and see if it replicates the same number as the graph, it could be since you are comparing two different things. One is an avg of months and the other is an avg by people. The people have way lower numbers then the months do.
**If this answer solved your problem be sure to like it and accept it as a solution!
0 -
- All Cards are using the Status Date as the Date Range Field.
- Removing the SORT Field PUNCH SCORE from the Table does nothing other than resort the table in a different manner. The Total PUN SCORE remains the same.
- Replacing SUPERINTENDENT with Status date does nothing to the total Line. (I require Superintendent to be a column so I can see individual scores.
- Adding Status Date to be included with Superintendent Column does nothing to total Line. I also disagree with your statement "The people have way lower numbers then the months do. See Count of Status Date compared to Total number of #PUN Tickets (sonum_wtnumber in BEAST MODE)"
0 -
Your cards seem to agree on an average punch score of 2.84-2.85. Eyeballing your table card, this appears to be correct, because most of your tickets are in the 2-3 range, with less than 500/9K over 4.
That narrows the problem to the line graph.
- I think what Ashleigh was suggesting that If you replace Superintendent with your StatusDate field on this table card (no aggregation) and switch to 'by month', you should be able to get a table version of your line graph. Does that table version agree with your line graph, or is closer to the 2.8 range of values we'd expect?
- Depending on where the values fall, it would be theoretically possible to get monthly averages that are higher than the overall average (see example at bottom). This seems unlikely based on the size of your data, but if you wanted better visibility, you could switch your table card to a pivot table, and add the statusdate to the columns field (switching the graph to 'by month'). Then you could see the punch date by month by supervisor and see if there are any weird things going on in the values by month. (Only Case Coventry punched tickets in October, say)
- I'd also be curious to see the line graph adding "Superintedent" as the series, so you can see if their individual punch scores are averaging in the same way as the pivoted table card
- Since it's the line graph card that appears to disagree, it's probably worth double checking your filters on that card one more time, and that you're using the same BeastMode on that card as the others
- Since your calculation is using "count distinct" in the denominator and numerator, it could also be theoretically possible for the monthly and total averages to be different than the monthly averages if the "distinctness" is distributed differently across months than it is across supervisors:
In this example dataset, the count(distinct Sales)/count(distinct Weight) would be 2/1 for each supervisor and 1/3 for each month (very different!). The overall average would be 2/3, another very different average that appears to disagree with the by supervisor and by month trends.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
David,
Ultimately I found this portion below of your answer to be true. Thank you to all for responding to this question.
DAVID's Reponse:
- Since your calculation is using "count distinct" in the
denominator and numerator, it could also be theoretically possible for
the monthly and total averages to be different than the monthly averages
if the "distinctness" is distributed differently across months than it
is across supervisors:
In this example dataset, the count(distinct Sales)/count(distinct
Weight) would be 2/1 for each supervisor and 1/3 for each month (very
different!). The overall average would be 2/3, another very different
average that appears to disagree with the by supervisor and by month
trends.1 - Since your calculation is using "count distinct" in the
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive