Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

DAX funciton for initial sotck

Hello, I have a table where i have my initial stock for my current month, antoher table where i get my unit sales and another tabel where i get my purchases.

 

To calculate my final stock of the month i calculate initial stock - sales + purchases.

 

I only have my initial stock for the first month(current month), for the others months the inital stock must be the final stock of previous month.

 

For my sales and purchases i have data of all the year.

 

 

I need help with a function that takes lasts months final stock and uses it as the new initial stock.

5 Replies