Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Operations with variables

The problem is this: mathematical operations between variables do not work well !

This apparently ! In fact you must format the formula to get a correct result ( IS A BUG ???)

This not Work:

=($(v_Saldo) / $(v_Saldo_ap_1_mobile))-1

This Work (!!!!)

=(

$(v_Saldo) / $(v_Saldo_ap_1_mobile)

)-1

Does anyone know?

Adriano

9 Replies
manishkumar75
Partner - Creator II
Partner - Creator II

Both expressions works fine for me. I am using QlikView 9.0 SR4

jonathandienst
Partner - Champion III
Partner - Champion III

You should not need to do this.

What are the values in the variables when you try the expression?

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

maybe you have to use the variables without $(), if variables are numeric, their behaviour is like fields

=(v_Saldo / v_Saldo_ap_1_mobile)-1

Not applicable
Author

Hello.

Unfortunately the problem persists even without using variables $

Not applicable
Author

Hi Jonathan

The values are:

$(v_Saldo) = -7630554,26

$(v_Saldo_ap_1_mobile) = -1242752,57

Adriano





Not applicable
Author

I am using QlikView 9.0 SR5 (.....)

jonathandienst
Partner - Champion III
Partner - Champion III

The macro expansion version doesn't work for me either (I don't know why), but the simple one

(v_Saldo / v_Saldo_ap_1_mobile)-1

does. See the attached qvw.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Forgot to say, I am also using SR5.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

The problem is exactly that:

If you enter multiple level ad parenthesis, the formula is not calculated.

If they want to keep multiple levels of parentheses, it is necessary to "wrap" (CR) at every level of brackets.

I think this is a bug !!!

Councils write to technical support?

Thanks. Adriano