Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jayaseelan
Creator III
Creator III

FIFO Concept for Inventory Stock Value

Hi Every One,

I have Confusion in calculating Inventory Stock value using FIFO Concept. I have Attached the Excel File about my desired output. 

3 Replies
Anonymous
Not applicable

Hi Jayaseelan,

Could u please elaborate more ...

saw attached xl it looks clumsy

Thanks

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Just by glancing at your XLS file i would assume that we have to precalculate buckets "OUT" for all buckets "IN"

I would do following steps:

  • Load all IN transactions
  • Join all OUT transactions (out transactions joined to first line of IN transaction)
  • Calculate IN - OUT and using Pick function i would calculate cumulative OUT buckets until difference is < 0
  • For all IN Transactions you would have Price IN - Multiply your difference by this price so you would get Value OUT
  • Sum(ValueOut)

This should be all done in script in order to allocate values properly.

regards

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
jayaseelan
Creator III
Creator III
Author

Thank for your reply,

FIFO Concept should be followed. First in comes item unit price should be calculated to first out item unit price.

Consider the following example,

Date           ItemCode    InQty  OutQty   unitprice   Value

1/11/2016      12GH          5                        10          50

2/11/2016      12GH          2                         8           16

3/11/2016      12GH                      6           10&8       58

From above example totaly i have 5 qty for 10rs as unit price 2 qty 8rs as unnit price. i need to calculate out unit price. 6 qty is out so i need to split the 6qty: 5 * 10 then 1 * 8  so my result is 58. 

thanks,