cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Analytics Cloud - Get Value by Data Action

guenay
Participant
0 Kudos
280

Hi friends,

I have a scenario where I have a dummy data row called "Holder," and I want to copy its values to valid data rows. Please see the table below:

Current State     
Dimension 1Dimension 2 Dimension 3 Dimension 4 Dimension 5 Amount (Measure)
      
Holder####150.000
A1B1C1D1E1 
A2B2C2D2E2 
A3B3C3D3E3 
A4B4C4D4E4 
      
      
Desired Outcome    
      
Dimension 1Dimension 2 Dimension 3 Dimension 4 Dimension 5 Amount (Measure)
      
Holder####150.000
A1B1C1D1E1150.000
A2B2C2D2E2150.000
A3B3C3D3E3150.000
A4B4C4D4E4150.000

I've tried various data action coding techniques but haven't achieved the desired outcome. When I use DATA(Dim1=A1)=Resultlookup(Dim1=Holder, Dim2=#), it generates a dataset for every available master data entry. On the other hand, using FOREACH.Booked doesn't work either, as the master data is used in other data rows as well and therefore generates again unvalid data rows

Does anyone have any suggestions?

@N1kh1l 

View Entire Topic
MichalCK
Participant
0 Kudos

you need to put your 
DATA(Dim1=A1)=Resultlookup(Dim1=Holder, Dim2=#...)

into an IF statement to limit masterdata combinations

something like

IF RESULTLOOKUP() != NULL THEN

DATA(Dim1=A1)=Resultlookup(Dim1=Holder, Dim2=#...)

ENDIF

this will copy the value only to already existing combinations 

Best regards,

Michal

 

 

 

 

guenay
Participant
0 Kudos
Alright I will try out.