Forum Discussion
Anonymous
1 year agoNot applicable
Power BI formula needed
Please help in calculating the Day Level Order Balance Qty
Note - Data is shorted by Order Date first then Order Qunatity
| Material_Location_Order Booked Date | Location | Material | Order Quantity | Order Date | Sales Order Total | Opening Inventory | Day Level Order Balance Qty | Formula |
| 9330019900999110845664 | 1108 | 9330019900999 | 2 | 07-Jan-25 | 46 | 18 | 16 | =G2-D2 |
| 9330019900999110845664 | 1108 | 9330019900999 | 20 | 07-Jan-25 | 46 | 18 | -4 | =H2-D3 |
| 9330019900999110845664 | 1108 | 9330019900999 | 24 | 07-Jan-25 | 46 | 18 | -28 | =H3-D4 |
| 9330019900999110845665 | 1108 | 9330019900999 | 1 | 08-Jan-25 | 148 | 70 | 69 | =G5-D5 |
| 9330019900999110845665 | 1108 | 9330019900999 | 1 | 08-Jan-25 | 148 | 70 | 68 | =H5-D6 |
| 9330019900999110845665 | 1108 | 9330019900999 | 2 | 08-Jan-25 | 148 | 70 | 66 | =H6-D7 |
| 9330019900999110845665 | 1108 | 9330019900999 | 2 | 08-Jan-25 | 148 | 70 | 64 | =H7-D8 |
| 9330019900999110845665 | 1108 | 9330019900999 | 2 | 08-Jan-25 | 148 | 70 | 62 | =H8-D9 |
| 9330019900999110845665 | 1108 | 9330019900999 | 2 | 08-Jan-25 | 148 | 70 | 60 | =H9-D10 |
| 9330019900999110845665 | 1108 | 9330019900999 | 3 | 08-Jan-25 | 148 | 70 | 57 | =H10-D11 |
| 9330019900999110845665 | 1108 | 9330019900999 | 3 | 08-Jan-25 | 148 | 70 | 54 | =H11-D12 |
| 9330019900999110845665 | 1108 | 9330019900999 | 4 | 08-Jan-25 | 148 | 70 | 50 | =H12-D13 |
| 9330019900999110845665 | 1108 | 9330019900999 | 4 | 08-Jan-25 | 148 | 70 | 46 | =H13-D14 |
| 9330019900999110845665 | 1108 | 9330019900999 | 4 | 08-Jan-25 | 148 | 70 | 42 | =H14-D15 |
| 9330019900999110845665 | 1108 | 9330019900999 | 6 | 08-Jan-25 | 148 | 70 | 36 | =H15-D16 |
| 9330019900999110845665 | 1108 | 9330019900999 | 6 | 08-Jan-25 | 148 | 70 | 30 | =H16-D17 |
| 9330019900999110845665 | 1108 | 9330019900999 | 6 | 08-Jan-25 | 148 | 70 | 24 | =H17-D18 |
| 9330019900999110845665 | 1108 | 9330019900999 | 8 | 08-Jan-25 | 148 | 70 | 16 | =H18-D19 |
| 9330019900999110845665 | 1108 | 9330019900999 | 10 | 08-Jan-25 | 148 | 70 | 6 | =H19-D20 |
| 9330019900999110845665 | 1108 | 9330019900999 | 10 | 08-Jan-25 | 148 | 70 | -4 | =H20-D21 |
| 9330019900999110845665 | 1108 | 9330019900999 | 10 | 08-Jan-25 | 148 | 70 | -14 | =H21-D22 |
| 9330019900999110845665 | 1108 | 9330019900999 | 24 | 08-Jan-25 | 148 | 70 | -38 | =H22-D23 |
| 9330019900999110845665 | 1108 | 9330019900999 | 40 | 08-Jan-25 | 148 | 70 | -78 | =H23-D24 |
10 Replies
- AnonymousNot applicable
danextian Plz help
- ryan_mayuSuper User
Anonymous
you can try this
1. create an index column in PQ
2. use DAX to create the column
Column = 'Table'[Opening Inventory]-sumx(FILTER('Table','Table'[Order Date]=EARLIER('Table'[Order Date])&&'Table'[Index]<=EARLIER('Table'[Index])),'Table'[Order Quantity])pls see the attachment below- AnonymousNot applicable
Thank you Ryan
Data set is huge around 11-13 lakh row, is there any way I can get the same result without using the Index- ryan_mayuSuper User
I didn't see any other column which is similar to index column that we can use in the DAX.
Let's see if any one else can provide better solution for you.