Forum Discussion

andresgl06's avatar
andresgl06
Frequent Visitor
5 years ago

Specific date measure

Hi everyone,

I need help with creating the next measure (i´ve tried multiple things but nothing has worked so far):

In the image above there´s the table i already have created. Basically i have a In Quantity (Inqty) and a YTD In Quantity. The same goes for Out Quantity. Then i have "MvtoDia" wich is the InQty- OutQty. So, what i need to do is calculate the daily stock, wich it should be something like this: 
Daily Stock on day 14= YTDMvtoDia (Evaluated "Today") - YTDMvtoDia(Evaluated day 15). In general form
DailyStock on day n= YTDMvtoDia(Evaluated "Today")- YTDMvtoDia(Evaluated day "n+1"). 

If anyone has any idea i´d be incredibly thankful

2 Replies