on 2024 Aug 25 11:13 PM - last edited 4 weeks ago
Hi All,
We have a requirement for Expenses planning to happen storewise using the microsoft excel add-in.
Based on the total sales value of the store, the value of each expense GL A/c needs to be divided against the total sales value.
CURRENT
Expected calculation is shown below
(GL Expense/ Sales of that store)
Note - I do know there is a way to write the formula for each GL A/c and divide it by the Income GL group (in the GL Dimension)
But this would be hardcoding the formula for each GL A/c.
Hence, is there a way for the calculation to take the Storewise amount present in the row & divide it by the storewise sales GL grouping, without having the need to hardcode the value for each Expense GL Account ?
@N1kh1l any inputs in terms of achieving this requirement ?
So that whatever GL's the user selects in the filters & those are visible in the rows, system can divide that by the Income GL group for the store?
Expectation is to be bring the sales GL group for that store against all the expenses of that store, so that a % of the expense against the sales of that store can be shown. (below table for reference)
Sales for this store in this month is Rs 500/-. Hence, it is expected that against all the expense GL's, the sales amount is displayed of Rs 500/-
GL | Store | Amount | Sales | % |
Electricity | A | 100 | 500 | 20% |
Rent | A | 150 | 500 | 30% |
Warehouse | A | 200 | 500 | 40% |
Sales | A | 500 | 500 | 100% |
Currently, this is happening, by applying LOOKUP or RESTRICT or SUBTOTAL formula's.
System is bringing the sales values against only the sales GL account, but it is not fetching the same sales value for expenses such as electricity.
Hence, we are unable to derive the expense as a % of sales for that respective store.
GL | Store | Amount | Sales | % |
Electricity | A | 100 | 0 | #DIV/0! |
Rent | A | 150 | 0 | #DIV/0! |
Warehouse | A | 200 | 0 | #DIV/0! |
Sales | A | 500 | 500 | 100% |
Can you please let us know what way we can achieve this in SAC ?
Regards,
Gavin.
Hi @WahidKausar , is this result your expected one?
The model setting in my test is below.
dimensions and base measures
calculated measures
Sarau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @SarauShen , this is what we want to happen. The problem is that Sales column is not really a measure in the model. That is a derived value based on the "Sales GL Account per month for a store". We are able to subtotal & bring this sales value. The problem that happens is we need the expense values divided by the "Sales GL Account per month for a store". Ill elaborate the same below: -
Please consider the below data set that is present in the model.
GL | Store | Month.Year | Amount |
Electricity | A | 11.2024 | 100 |
Rent | A | 11.2024 | 150 |
Warehouse | A | 11.2024 | 200 |
Sales | A | 11.2024 | 500 |
Electricity | B | 11.2024 | 150 |
Rent | B | 11.2024 | 225 |
Warehouse | B | 11.2024 | 300 |
Sales | B | 11.2024 | 750 |
Electricity | A | 12.2024 | 200 |
Rent | A | 12.2024 | 300 |
Warehouse | A | 12.2024 | 400 |
Sales | A | 12.2024 | 1000 |
Electricity | B | 12.2024 | 300 |
Rent | B | 12.2024 | 450 |
Warehouse | B | 12.2024 | 600 |
Sales | B | 12.2024 | 1500 |
The expected value that should come is seen below in the column called "Expected%"
GL | Store | Month.Year | Amount | Expected % | Explaination of calculation |
Electricity | A | 11.2024 | 100 | 20% | Electricity GL /Sales GL of Store A for 11.2024 |
Rent | A | 11.2024 | 150 | 30% | Rent/Sales of Store A for 11.2024 |
Warehouse | A | 11.2024 | 200 | 40% | Warehouse/Sales of Store A for 11.2024 |
Sales | A | 11.2024 | 500 | 100% | Sales/Sales of Store A for 11.2024 |
Electricity | B | 11.2024 | 150 | 20% | Electricity/Sales of Store B for 11.2024 |
Rent | B | 11.2024 | 225 | 30% | Rent/Sales of Store B for 11.2024 |
Warehouse | B | 11.2024 | 300 | 40% | Warehouse/Sales of Store B for 11.2024 |
Sales | B | 11.2024 | 750 | 100% | Sales/Sales of Store B for 11.2024 |
Electricity | A | 12.2024 | 200 | 20% | Electricity/Sales of Store A for 12.2024 |
Rent | A | 12.2024 | 300 | 30% | Rent/Sales of Store A for 12.2024 |
Warehouse | A | 12.2024 | 400 | 40% | Warehouse/Sales of Store A for 12.2024 |
Sales | A | 12.2024 | 1000 | 100% | Sales/Sales of Store A for 12.2024 |
Electricity | B | 12.2024 | 300 | 20% | Electricity/Sales of Store B for 12.2024 |
Rent | B | 12.2024 | 450 | 30% | Rent/Sales of Store B for 12.2024 |
Warehouse | B | 12.2024 | 600 | 40% | Warehouse/Sales of Store B for 12.2024 |
Sales | B | 12.2024 | 1500 | 100% | Sales/Sales of Store B for 12.2024 |
We are unable to achieve the % calculation seen in the column "Expected %".
We do not want to hardcode the formula of Electriticity GL/Sales GL in the formula for public dimension of GL Account. Since there are nearly 500 such expense GL codes. Since hierarchies in the GL account wont work if the formulas are hardcoded (for e.g. the hierarchy of Indirect expenses has 20 expense GL codes tagged to the hierarchy. Hence, if the user sees the value of Indirect expenses, the % should be calculated as sum of all the "20 GL's in indirect expenses"/"Sales GL per store per month). We want the system to pick the value present for each row & divide that by the "Sales GL per store per month.year"
I appreciate your support on this.
User | Count |
---|---|
7 | |
5 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.