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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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 MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors