Hello everyone,
I am working on a stock management and I want to evaluate final stock.
So I have collumns named "final stock", "entry", "outings".
I want to evaluate "final stock" which is previous "final stock" + same "entry" - same "outings".
Is it possible to make it in one collumn "final stock"?
Solved! Go to Solution.
You could create a measure like
Final stock =
VAR CurrentDate =
MAX ( 'Date'[Date] )
VAR Result =
CALCULATE (
SUM ( 'Table'[Entry] ) - SUM ( 'Table'[Outings] ),
'Date'[Date] <= CurrentDate
)
RETURN
Result
You could create a measure like
Final stock =
VAR CurrentDate =
MAX ( 'Date'[Date] )
VAR Result =
CALCULATE (
SUM ( 'Table'[Entry] ) - SUM ( 'Table'[Outings] ),
'Date'[Date] <= CurrentDate
)
RETURN
Result