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

Replace Nested If with Mapping Table

I have a calculated dimension in a pivot table which is using nested ifs. There are more than 200 cases, and it seems that there is a limit around 100 fo rthe number of nested if statements...

So that I would like to now about alternatives WITHOUT SCRIPTING. Is it possible for instance to have a mapping table defined in a QV object, which can be refered to in the pivot table ? Or to define variables that are then used in the calculated dimension ?

If new variables were to be added, is it possible in the Full Browser version, and how to proceed ?

Thanks in advance

9 Replies
alexandros17
Partner - Champion III
Partner - Champion III

I think that variables could help you somehow, have you tried wildmatch?

mahesh_agrawal
Creator
Creator

Can u share the application?

Not applicable
Author

I cannot share the application.

Could you give one example use with wildmatch?

Thanks in advance

maleksafa
Specialist
Specialist

can't you do that from the script or in your reloader script, you should limit and even note use calculated dimensions.

Not applicable
Author

I have no access to the script on this occasion... I work on a document on a server and i cannot either script or write macros.

Not applicable
Author

Is it possible to create variables and work with new variables in the QV Full Browser version ?

alexandros17
Partner - Champion III
Partner - Champion III

In your objects? Yes!

marcus_sommer

In most cases nested if-loops could be replaced by pick(match()). Have a look on this and similar postings Re: Fieldname<> multiple values question and in F1.

- Marcus

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Also using pick(match()) is more efficient in terms of calculation time than nested if, especially if you have plenty of cases,

regards