cancel
Showing results for 
Search instead for 
Did you mean: 

Switch from text to key for measures in script

hoernst
Participant
0 Kudos
230

Dear Scripting-Experts

I added an indicator arrow to a SAC Story with a R-Visualization.
It works fine as long I use German as my data access language because I created the variables based on the German names of the measures.
If other Users have English as data access language the Script isn't working because the name of the measure changes.
Is there a way to switch the script to the key of the measure? Or add German and English?

Script snippet:
x<-c(1)
AC<-ZSTD_ZACGCP01_CG_010$'Cashwirksame Investitionen - AC Monthly (HW)'
PL<-ZSTD_ZACGCP01_CG_010$'Cashwirksame Investitionen - PL Monthly (HW) Year to Date'
plot(x,xaxt='n',yaxt='n',
frame.plot=FALSE,ann=FALSE,
pch=ifelse(AC>=PL,24,25),cex=10,
col=ifelse(AC>=PL,"#c00000","#92d050"),
bg=ifelse(AC>=PL,"#c00000","#92d050"),lwd=1)

 

Thanks a lot in advance!

Bet regards
Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

hoernst
Participant
0 Kudos

Does no one have any ideas on how to solve the problem?