Forum Discussion
Volvo_Chang
Helper I
2 years agoPrevious Week Inventory - this week Sales
Hello, I like to create a new dax column based on previous week inventory - this week sales and be able to predict for the future. First, there is no inventory data value past the current week so i...
Anonymous
2 years agoNot applicable
Hi, Volvo_Chang
Since I don't know your data, I've created a sample table:
Then create new columns:
CurrentWeekInventory =
CALCULATE(
SUM('Table'[Inventory]),
FILTER(
'Table',
'Table'[Week] = EARLIER('Table'[Week]) - 1
)
) - 'Table'[Sales]
NextWeekInventoryPrediction =
'Table'[CurrentWeekInventory] - 'Table'[NextWeekSalesBaseline]
Here is my preview:
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.