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

Update the dimension member in a transactional record in model

saikhancs35
Explorer
0 Likes
471

Hello,

I have a requirement to update the dimension member of a particular row in the transactional data of a model.

For example, i have below transactional data in a model:

Dim ADim BDim CAmount
#BT01DI11112345
#BT02DI11134567

And i want update record like this:

Dim ADim BDim CAmount
MD01BT01DI11112345
MD01BT02DI11134567

Is it possible to achieve this?

 

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

ThomasK
Active Participant

Hi @saikhancs35 ,

using advanced formulas it could look like this.

Regards,

Thomas

PS: Cloud also be solve with a data action copy step and a delete statment in a following visual advanced formula step.

VARIABLEMEMBER #T1 OF [d/Version]

DATA([d/Version] = #T1, [d/DimA] = "MD01") = RESULTLOOKUP()
DELETE()
DATA() = RESULTLOOKUP([d/Version] = #T1)

 

Ivan_Camac
Participant
0 Likes

This is the best solution and it is what we use for the exact same situation.

Data actions do not currently have a native ‘Update’ or ‘Overwrite’ functionality.

The other benefit of using the Version Variable member approach is that when debugging/tracing the advanced formula step, you can easily preview exactly what data is being created.

Cheers, Ivan.

N1kh1l
Active Contributor
0 Likes

@saikhancs35 

Not sure but I think you have over simplified your example. From your example it just looks like a copy from # to MD01 for Dim A. You could just use a copy data action to do so and specify in the rule. You can delete the # data after copy if required.

 

Nikhil