Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello:
I have this expression in a chart: Pick(Month(Today()), 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic' )
I would like something like this
vMonth = 'Ene, Feb, Mar, Abr, May, Jun, Jul, Ago, Sep, Oct, Nov, Dic'
Pick(Month(Today()), vMonth)
But I can't get it. Is it possible ?
Thank you very much
Joaquín
Define vMonth like:
'Ene', 'Feb', 'Mar',....... // No '=' sign and with closing quotes
Hi Joaquin
Please try change your expression to this:
Pick(Month(Today()), $(vMonth) )
Hi Miguel:
I've just tried it, but it doesn't work
= Pick(Month(Today()), $(vMonth) ) it should be 'Oct' but the result in NULL !!!!
Thank you
Joaquín
If you want to fetch the value from your variable, you have to use "$"
As suggested by MiguelBraga have $(vMonth)
Sure, but it doesn't work !!!!
Define vMonth like:
'Ene', 'Feb', 'Mar',....... // No '=' sign and with closing quotes
Hi Joaquin,
Change the variable vMonth Format like below,
'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
Expression as Pick(Month(Today()), $(vMonth) )
It should work. Let me know.
Thank you guys. Now it works
Before write here I tried with vMonth and $(vMonth) ... but I didn't populate vMonth as tresesco and TamilArasu wrote because the expression editor mark it as error (red underline) !!!!
Good job, thanks you all
Joaquín