cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Planning for Expenses based on Income ratio for the store

GavinMonteiro3
Participant
668

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

GavinMonteiro3_0-1724623824468.png

Expected calculation is shown below 
(GL Expense/ Sales of that store)

GavinMonteiro3_1-1724623839427.png

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/-

GLStoreAmountSales%
ElectricityA10050020%
RentA15050030%
WarehouseA20050040%
SalesA500500100%

 

Currently, this is happening, by applying LOOKUP or RESTRICT or SUBTOTAL formula's.

https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/3b7c99a7a7cd4a29bb1c5...

 

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.

GLStoreAmountSales%
ElectricityA1000#DIV/0!
RentA1500#DIV/0!
WarehouseA2000#DIV/0!
SalesA500500100%

GavinMonteiro3_0-1726750612013.png

Can you please let us know what way we can achieve this in SAC ?

 

Regards,
Gavin.

View Entire Topic
SarauShen
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @WahidKausar , is this result your expected one?

SarauShen_0-1726869658060.png

The model setting in my test is below. 

dimensions and base measures

SarauShen_2-1726869779435.png

calculated measures

SarauShen_1-1726869729770.png

Sarau

 

WahidKausar
Explorer
0 Kudos

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.

GLStoreMonth.YearAmount
ElectricityA11.2024100
RentA11.2024150
WarehouseA11.2024200
SalesA11.2024500
ElectricityB11.2024150
RentB11.2024225
WarehouseB11.2024300
SalesB11.2024750
ElectricityA12.2024200
RentA12.2024300
WarehouseA12.2024400
SalesA12.20241000
ElectricityB12.2024300
RentB12.2024450
WarehouseB12.2024600
SalesB12.20241500

 

 

The expected value that should come is seen below in the column called "Expected%"

GLStoreMonth.YearAmountExpected %Explaination of calculation
ElectricityA11.202410020%Electricity GL /Sales GL of Store A for 11.2024
RentA11.202415030%Rent/Sales of Store A for 11.2024
WarehouseA11.202420040%Warehouse/Sales of Store A for 11.2024
SalesA11.2024500100%Sales/Sales of Store A for 11.2024
ElectricityB11.202415020%Electricity/Sales of Store B for 11.2024
RentB11.202422530%Rent/Sales of Store B for 11.2024
WarehouseB11.202430040%Warehouse/Sales of Store B for 11.2024
SalesB11.2024750100%Sales/Sales of Store B for 11.2024
ElectricityA12.202420020%Electricity/Sales of Store A for 12.2024
RentA12.202430030%Rent/Sales of Store A for 12.2024
WarehouseA12.202440040%Warehouse/Sales of Store A for 12.2024
SalesA12.20241000100%Sales/Sales of Store A for 12.2024
ElectricityB12.202430020%Electricity/Sales of Store B for 12.2024
RentB12.202445030%Rent/Sales of Store B for 12.2024
WarehouseB12.202460040%Warehouse/Sales of Store B for 12.2024
SalesB12.20241500100%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.

SarauShen
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi @Wahid, in my previous comment, "Sales" and "Percentage" are calculated measures. Calculated measure "Sales" is derived based on "GL_Account = Sales". Hence you don't need to hardcode other GL_Accounts in your formulas.