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

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

Problem with currency selection

Hi all,

I'm new to Qlickview so my problem will probably easy to solve.

I have the following problem:

I have multiple companies with their own currency (in my case EUR and GBP).

Their is a list box where i can select the 'Original' currency or 'EUR' currency.

How does my expresssion need to be so when no company is selected, the EUR currency is applicable, and when a company is selected, the original currency is applicable?

Thanks for the help.

Sebastien.

6 Replies
Not applicable
Author

Since it is a bit difficult to fully expain in text, I made an example qvw.

The resulting expression is:

EURprice * if(GetSelectedCount([currency-code])=1,factor,only({<IsdefaultCurrency={1}>}factor))

What it does is this: when no currency is selected, the only() function is used with setanalysis that makes sure that only the default currency will be selected.

See the attached example. I hope this is (similar to) what you are looking for

Not applicable
Author

Roberto,

I'm not sure this is what i'm looking for.

When i open the file (dashboard), it is put on 'Original' currency as default.

Let's say i want to see the overall sales in Euros, I select 'Euro' but because one of the company's is in GBP my group result isn't totally correct because it adds Euros with Pounds.

It would be nice if no company is selected, Qlickview automatically takes 'EUR' currency because here the pounds are already converted to Euros.

Thanks anyway for the effort.

lucas4bi
Partner - Creator
Partner - Creator

Hello, can you make an example of how the table is made?

Not applicable
Author

Could you give some more details about which columns / expressions you use?

A (small) example app would be ideal. There is no need for "real data", as long as your qvw has "the same problem / logic".

I still think that the function GetSelectedCount() is helpful for you, or perhaps the function =GetFieldSelections() (which returns what value you have selected). This in combination with an if/else or sum(if() ) shouild do the trick...

Hope it helps. If not, hope you can provide an example qvw.

Not applicable
Author

Ok, i think i was able to solve it with your function. I didn't understand it completely the first time.

Thanks!

Not applicable
Author

"I think"....

In case you still have any doubt, please let me know. I'd be happy to explain things a bit further when it isn't clear yet. In that case, let  me know what the current unclarities are.