Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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