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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

FIFO, to count how long the inventory/stock pending days in warehouse and average it

Hi

 

Below is my original table , i have this material in warehouse  by dept, until here i stuck hope can get help from you guys, really appreciate it.

Sample: i had purchased two times for this material in this warehouse 

DateMaterialWarehouseDepartment IDAttributeValue
02-Jan-20M1W1Dep1Stock In4000
03-Jan-20M1W1Dep1Stock In2500

Then i sold these item (total 5023 had been sold)

02-Jan-20M1W1Dep1Stock Out.1279
03-Jan-20M1W1Dep1Stock Out.1226
04-Jan-20M1W1Dep1Stock Out.1296
06-Jan-20M1W1Dep1Stock Out.1287
07-Jan-20M1W1Dep1Stock Out.1227
08-Jan-20M1W1Dep1Stock Out.1164
09-Jan-20M1W1Dep1Stock Out.1143
10-Jan-20M1W1Dep1Stock Out.1129
11-Jan-20M1W1Dep1Stock Out.1183
13-Jan-20M1W1Dep1Stock Out.1293
14-Jan-20M1W1Dep1Stock Out.1208
15-Jan-20M1W1Dep1Stock Out.1171
16-Jan-20M1W1Dep1Stock Out.1150
17-Jan-20M1W1Dep1Stock Out.1165
18-Jan-20M1W1Dep1Stock Out.1187
20-Jan-20M1W1Dep1Stock Out.1214
21-Jan-20M1W1Dep1Stock Out.1217
22-Jan-20M1W1Dep1Stock Out.1120
23-Jan-20M1W1Dep1Stock Out.1196
24-Jan-20M1W1Dep1Stock Out.1277
27-Jan-20M1W1Dep1Stock Out.1314
28-Jan-20M1W1Dep1Stock Out.1163
29-Jan-20M1W1Dep1Stock Out.1106
30-Jan-20M1W1Dep1Stock Out.1184
31-Jan-20M1W1Dep1Stock Out.1124

I hope can according the sold quantity then identity the purchase based on FIFO method like result below:

pinky1234lim123_1-1687544440603.png


Original Table 

pinky1234lim123_0-1687542612818.png

 

1 REPLY 1
some_bih
Super User
Super User

Hi @Anonymous check https://radacad.com/dax-inventory-or-stock-valuation-using-fifo hope this help





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors