Forum Discussion

ChristianDGreat's avatar
ChristianDGreat
Resolver I
3 years ago
Solved

Complex Scoring

Hi everyone, I was thinking on solving this but I got stuck to the last part.

So imagine you have this kind of table

 

Order NumberOrder Number LineStatusDateQty
AAAAA1Booked2/2/23 9:29 AM2
AAAAA1Booked2/3/23 9:29 AM2
AAAAA1Shipped2/4/23 9:29 AM3
AAAAA1Shipped2/5/23 9:29 AM2
AAAAA2Booked2/6/23 9:29 AM4
AAAAA2Booked2/7/23 9:29 AM4
AAAAA2Shipped2/8/23 9:29 AM2
AAAAA2Shipped2/9/23 9:29 AM3
AAAAA3Shipped2/10/23 9:29 AM1
AAAAA3Shipped2/11/23 9:29 AM3
BBBBB1Booked2/12/23 9:29 AM2
BBBBB1Booked2/13/23 9:29 AM3
BBBBB1Booked2/14/23 9:29 AM5
BBBBB1Booked2/15/23 9:29 AM6
BBBBB1Shipped2/16/23 9:29 AM6
BBBBB2Booked2/17/23 9:29 AM3
BBBBB2Booked2/18/23 9:29 AM4
BBBBB2Shipped2/19/23 9:29 AM4

 

The goal is to have something like this

 

Basically I want to put that into a Matrix Table.
let me explain the Logic.

 

  1. First is we want to groupby Order Number and Order Line Number+
  2. Column D = is a sum(qty) of the Last Time(from Date Table) the Order Line Number is booked.
  3. Column F = is the sum(qty) of the first time(from the date table) the Order Line Number is shipped
  4. Column G is the score, the logic there is both value from Column D and Column F are equal it will be 1 point, otherwise its 0,
    The tricky part is on the grand total. if you look at the one I circled, Order Number = AAA, you can see that the total is 6 for column D and 6 on column F, even Order Number AAA score is only 1, they will still get a score of 3(the reason its 3 its because of the number of unique order line number) on the total because they have the same number in the TOTAL level.

    Let me know if this makes sense.

 

 



  • The score makes no sense as the quantity for AA2 is not the same (4 vs 2) so the top score should be 0.

     

     

     

     

    See attached for the proposed implementation.

     

     

2 Replies

  • The score makes no sense as the quantity for AA2 is not the same (4 vs 2) so the top score should be 0.

     

     

     

     

    See attached for the proposed implementation.

     

     

    • ChristianDGreat's avatar
      ChristianDGreat
      Resolver I

      Thanks for this but I figure it out.
      Its using INSCOPE formula,

      IF INSCOPE of the ORDER NUMBER compute with the Total, and if its in ORDER ITEM LINE it will compute by Order Item Line.

       

      Thanks!