Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ChristianDGreat
Resolver I
Resolver I

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

ChristianDGreat_2-1675364255422.png

 

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.

 

 



1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

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

 

lbendlin_1-1675546809625.png

 

 

 

See attached for the proposed implementation.

 

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

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

 

lbendlin_1-1675546809625.png

 

 

 

See attached for the proposed implementation.

 

 

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!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.