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

Warehouse in specific date

Hi everyone,

first post in the comunity

I need to create a graph for warehouse during time. I have warehouse situation in this moment and all the Sell Out and Sell In of the past day. With MasterCalendar I have create calendar from min and max date present. Now I need to calculete the qty of warehouse in that specific date. I try with RangeSum and Above but I have the limit of row sorting and filter on row... Don't work fine.

For exemple warehouse

ItemQuantity
CODE_A3
CODE_B4

Movements

SellItemDateQuantity
INCODE_A12/08/2018+ 1
OUTCODE_A12/08/2018- 2
OUTCODE_A10/08/2018- 1
OUTCODE_B11/08/2018- 1
OUTCODE_B10/08/2018- 3


I need something like this:

ItemDateQuantity
CODE_A12/08/20184
CODE_A11/08/20184
CODE_A10/08/20185
CODE_B12/08/20184
CODE_B11/08/20185
CODE_B10/08/20188


3 Replies
petter
Partner - Champion III
Partner - Champion III

I think an As-Of Table in your data model should work well for you:

The As-Of Table

jheasley
Luminary Alumni
Luminary Alumni

so another option would be to add a 3rd dimension to the sell table for the start date of each month. your entry for december may look like this:

Sellitemdatequantity
StartCODE_A12/08/20183
INCODE_A12/08/20181
outCODE_A12/08/2018-2

if you have the start for each date, you can then effectively calculate the sum(quantity) for any given date.  as an added side effect, you can use very simple set analysis to also determine in/out/start points for aggregated time ranges.

Anonymous
Not applicable
Author

Hi all,

I try both the solutions but I foun easyer solution.

I have create Master Calendar and joined with Warehouse an sell IN & OUT groupped by date. Ordered this table for ITEM and DATE desc so I create a calculed field like this:

if(Previous(ITEM_ID) = ITEM_ID, (Peek(QTY_PROG) + [QTY_OUT] - [QTY_IN]), (QTY_WARE+ [QTY_OUT] - [QTY_IN])) as 'QTY_PROG'

Thanks everybody