Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rdlccn70
Contributor III
Contributor III

Using variables in expression

Hi all,

i have following Expression:

(Sum({<DATA_PERSONAL_EBENE ={'IST'},Jahr_Personal ={'2015'},Monat_Personal=(vPriorMonthPersonal)>[DATA_PERSONAL_WERT]))

Everything is ok, but i have a problem with the variables vPriorMonthPersonal. How can i use this in the Expression?

Thank you.

Regards,

Erdal


8 Replies
swuehl
MVP
MVP

Try like

Sum({<DATA_PERSONAL_EBENE ={'IST'},Jahr_Personal ={'2015'},Monat_Personal={'$(vPriorMonthPersonal)'} >} [DATA_PERSONAL_WERT])

afernandezblade
Partner - Contributor
Partner - Contributor

Hi,

Try:

(Sum({<DATA_PERSONAL_EBENE ={'IST'},Jahr_Personal ={'2015'},Monat_Personal={"$(vPriorMonthPersonal)"}>[DATA_PERSONAL_WERT]))

sasiparupudi1
Master III
Master III

The variable must be wrapped in $()

Monat_Personal={'$(vPriorMonthPersonal)'}

rdlccn70
Contributor III
Contributor III
Author

Hi, thank you ver much. it works with Monat_Personal={'$(vPriorMonthPersonal)'}, bu i have another question.

How can Change a number in two Digits like this

My vPriorMonthPersonal is numeric and i Need in two Digits. Is there a function like Format??

Regards

Erdal

   

Numerictwo digits
101
202
303
404
505
606
707
808
909
1010
11

11

1212

rdlccn70
Contributor III
Contributor III
Author

Hi it works with '....', not with "...". Thank you.

swuehl
MVP
MVP

Use

num(FIELD, '00')

rdlccn70
Contributor III
Contributor III
Author

perfect, thank you.

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer.

If not, please make clear what part of your question you still need help with .

May you live in interesting times!