Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Currency

I make 2 variables to convert the currency from KWD into $ and

And the two expressions:

If(Vcur$='$',Sum(Balance02),Sum(Balance02)*Vrate$)

If(Vcur€='€',Sum(Balance02),Sum(Balance02)*Vrate€)

are working fine but separate.

So I need to merge between this two expressions to make 1 Expression, Once I select $ button the currency should changes to $, Once I select button the currency should changes to , and Once I select KD button the currency should changes to KD.

for more explanation please check the qvw file.

Best Regards,

Awadah

1 Solution

Accepted Solutions
sunny_talwar

Changed some formulas and variables around, see if this is what you want

View solution in original post

3 Replies
avinashelite

try like this create a inline table for all your currency in the script

Currency:

LOAD * inline

[

Unit

Dollar

Euro

KD

];

Then in the button >go to properties > Action> select in field >choose the field in first(Dollar) > value ..if the button is for Dollar than select Dollar

based on the selection write a if condition in the expression to set the values like

if(getfieldselections(Unit)='Dollar', Sum(Balance02),Sum(Balance02)*Vrate$,

if(getfieldselections(Unit)='Euro' Sum(Balance02),Sum(Balance02)*Vrate€)

)

)

sunny_talwar

Changed some formulas and variables around, see if this is what you want

Anonymous
Not applicable
Author

Dear Sunny,

Yes this is what I want thanks a lot 😃