Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

set analysis to bring one record

Hi All,

I have one account number which has 3 currencies (AUD, NZD and USD), the numbers are converted in AUD.

In my straight table, the currency column showing blank, because it has three currencies..

the only possible option i have is the account number belongs to country "Australia".

I want to show the currency "AUD" instead of blank.

Any idea to bring in this output.

May be some set analysis also will help.

somthing like this

 

=only({<Country = {$(=max(Country))}>}Currency)

Cheers

Ren


3 Replies
schlettig
Partner - Creator
Partner - Creator

you could add another table to the data model for looking up Country to Currency:

load

          Country,

          Currency as Default_Curreny

..

that's linked via the country field in you Account Data.

Than you could simply use Default_Currency to be shown.

BR,

Christian

PrashantSangle

Hi,

Create Inline Table and Mention Currency and CountryName in that,

Try something like this,

LOAD * INLINE [

Country,Currency

Australia,AUD

];

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Its not possible to use a set expression like that. The set expression is evaluated once for the whole chart, and not on a row-by-row basis.

I suggest that you post a sample of your model, so that people can make informed suggestions, rather than guessing.

HTH

Jonathan

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