Forum Discussion
Calculating daily retail budgets
- Anonymous8 years ago
igibson,
Create the following columns in your table.
Month = MONTH(Table[Date])Sumsales = CALCULATE(SUM(Table[Sales]),ALLEXCEPT(Table,Table[Month]))
Daily budget = Table[Sales]/Table[Sumsales]*Table[Bugdet]
Regards,
Lydia - Anonymous8 years ago
igibson,
Just change the formula of Sumsales to the following:
Sumsales = CALCULATE(SUM(Table[Sales]),ALLEXCEPT(Table,Table[Month],Table[Store]))
Regards,
Lydia
igibson,
Create the following columns in your table.
Month = MONTH(Table[Date])
Sumsales = CALCULATE(SUM(Table[Sales]),ALLEXCEPT(Table,Table[Month]))
Daily budget = Table[Sales]/Table[Sumsales]*Table[Bugdet]
Regards,
Lydia
Thank you very much. This is a step in the right direction, however in my whole table I have more stores than just ALR. So currently it is summing the sales of all stores of each month. Do you know of a dynamic way for the salessum to only pull the correct values for each store?
- Anonymous8 years agoNot applicable
igibson,
Just change the formula of Sumsales to the following:
Sumsales = CALCULATE(SUM(Table[Sales]),ALLEXCEPT(Table,Table[Month],Table[Store]))
Regards,
Lydia