Forum Discussion
Create new column with values on previous rows
- 3 years ago
kumalasa , You need to create a cumulative/running total approach. You can use the previous row value which also calculating
example measure using date table
CALCULATE(SUM(Table[Stock In]),filter(date,date[date] <=maxx(date,date[date]))) - CALCULATE(SUM(Table[Stock Out]),filter(date,date[date] <=maxx(date,date[date])))
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
kumalasa , You need to create a cumulative/running total approach. You can use the previous row value which also calculating
example measure using date table
CALCULATE(SUM(Table[Stock In]),filter(date,date[date] <=maxx(date,date[date]))) - CALCULATE(SUM(Table[Stock Out]),filter(date,date[date] <=maxx(date,date[date])))
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
- Anonymous3 years agoNot applicable
Please accept the Solution b y amitchandak