Forgive my ignorance as I'm a bit of a noob but I am attempting to calculate the following two measures in PowerPivot:
FILL RATE @ PO LEVEL = [QTY RECEIVED]/[QTY ORDERED]
For example, in the table below, the [QTY RECEIVED] would be the sum of (10,0,125,15) and [QTY ORDERED] would be 150 (not the sum of {150,150,150,150})
DELIVERY COMPLIANCE RATE @ PO LEVEL = AVERAGE OF [DELIVERY COMPLIANCE] WEIGHTED BY QTY RECEIVED OUT OF TOTAL QTY ORDERED WHERE [DELIVERY COMPLIANCE] is a calculated column = IF([RECEIPT DATE] <= [REQUIRED DATE],1,0)
For example, again in the table below, [PO NO] 0027380 ordered 150 of [Item Code] 111248. 10k were received on [RECEIPT NO] 033243, 0 on [RECEIPT NO] 034122, 125 on [RECEIPT NO] 034180, 15 on [RECEIPT NO] 034223. The result I am looking for would be 6.7% delivery compliance (1*10,1*0,0*125,0*15) like an array formula.
I would also like it to roll up correctly using this same line of thinking to the item and vendor level.
Thank you in advance for your assistance in helping me better understand DAX!
<tbody>
</tbody>
FILL RATE @ PO LEVEL = [QTY RECEIVED]/[QTY ORDERED]
For example, in the table below, the [QTY RECEIVED] would be the sum of (10,0,125,15) and [QTY ORDERED] would be 150 (not the sum of {150,150,150,150})
DELIVERY COMPLIANCE RATE @ PO LEVEL = AVERAGE OF [DELIVERY COMPLIANCE] WEIGHTED BY QTY RECEIVED OUT OF TOTAL QTY ORDERED WHERE [DELIVERY COMPLIANCE] is a calculated column = IF([RECEIPT DATE] <= [REQUIRED DATE],1,0)
For example, again in the table below, [PO NO] 0027380 ordered 150 of [Item Code] 111248. 10k were received on [RECEIPT NO] 033243, 0 on [RECEIPT NO] 034122, 125 on [RECEIPT NO] 034180, 15 on [RECEIPT NO] 034223. The result I am looking for would be 6.7% delivery compliance (1*10,1*0,0*125,0*15) like an array formula.
I would also like it to roll up correctly using this same line of thinking to the item and vendor level.
Thank you in advance for your assistance in helping me better understand DAX!
VENDOR NAME | ITEM CODE | PO NO | RECEIPT NO | REQUIRED DATE | RECEIPT DATE | DELIVERY COMPLIANCE RATE | QTY ORDERED | QTY RECEIVED |
BCS | 111248 | 0027380 | 033243 | 2/13/2015 | 12/18/2014 | 100% | 150 | 10 |
BCS | 111248 | 0027380 | 034122 | 2/13/2015 | 2/13/2015 | 100% | 150 | 0 |
BCS | 111248 | 0027380 | 034180 | 2/13/2015 | 2/18/2015 | 0% | 150 | 125 |
BCS | 111248 | 0027380 | 034223 | 2/13/2015 | 2/23/2015 | 0% | 150 | 15 |
<tbody>
</tbody>