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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.