cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Allocation in SAC

Freddie
Explorer
0 Kudos
599

Hello,

I have a scenario that I need help with. I upload data with a split on the members of [d/COUNTRY] and on [d/STORE] = "#". The same total is uploaded afterwords, but the other way around i.e. with a split on the members of [d/STORE] and [d/COUNTRY = "#". I now need to merge these two together with a Data Action while having almost the same original split on [d/COUNTRY] and [d/STORE].

Anyone have any ideas?

View Entire Topic
MoonJun
Product and Topic Expert
Product and Topic Expert

Hi @Freddie 

Please refer to the Advanced formulas script, which populates the Allocated amount based on the Driver value Country "#". 

Source Value

Alloc_Source.png

Driver Value

Alloc_Driver.png

Advanced Formulas Script

MEMBERSET [d/Measures] = "Amount"
MEMBERSET [d/Date] = "202412"

VARIABLEMEMBER #Site_Total OF [d/SITE] 

DATA([d/SITE]=#Site_Total,[d/Country]="#") = RESULTLOOKUP([d/Country]="#")
DATA() = RESULTLOOKUP([d/SITE]="#") * RESULTLOOKUP([d/Country]="#") / RESULTLOOKUP([d/Country]="#",[d/SITE]=#Site_Total)

Allocated Result

Alloc_Allocated.png

I hope this helps solve your issue.

Moonjun