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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
sarfaraz_sheikh
Contributor III
Contributor III

Dimension Related

Dear ALL ,


I am using simple Wildmatch function......... below is calculated dimension code..

=if(Wildmatch(D_NO,1),'Exellent',
if(Wildmatch(D_NO,2),'Very_Good',
if(Wildmatch(D_NO,3),'Good',
if(Wildmatch(D_NO,4),'Average',
if(Wildmatch(D_NO,5),'Need_Improvement',
if(Wildmatch(D_NO,1,2,3),'Fabulous'))))))


                           

i am not getting Fabulous as dimension content.....kindly help if any tricks...

My QVW is also attached here for your reference.........

Labels (1)
14 Replies
datanibbler
Champion
Champion

Hi Sarfaraz,

it is possible - but not in a single expression. Like I have said, the values can only be populated once - e.g., they can only be matched against one text in one expression. Once the values are "taken", they are gone.

You need a second expression (a second field) to match them against some other text.

How would you want to do in your chart? What should it look like?

Again, knowing where you want to go makes it easier for others to tell you how to get there.

Best regards,

DataNibbler

P.S.: Oh - and independent of this, if you use a PICK(MATCH()) function in your expression instead of all these nested IF_clauses, it makes the whole thing much easier to reconstruct or maintain (later or by someone else) - rgd. the bracketing. In a PICK(MATCH()) function, each line is closed off for itself, so there are not 7 closing brackets in one point ...

sarfaraz_sheikh
Contributor III
Contributor III
Author

Dear Nibbler,

                                        Total Leads Considered        Insurer Reject               Follw up          So on.....

Chennai          Amount          523478                            17175                             30000

                      Count              311                                    2                                  8

Mumbai          Amount            500789                             80000                            257800        So on...

                      Count                239                                    1                                 7

Status_ID =75   Follow_up

Status_ID=80    Insurer Reject

Insurer Reject + Follow_up = Total Leads_considere

likewise i want to achieve ...........this is my requirement ..thats the reason i asked you is it possible or not to do so ..

Sarfaraz

sarfaraz_sheikh
Contributor III
Contributor III
Author

Dear Nibbler,

Can you keep any example for my understanding ........so it would be  eassy for me to do so ....

Sarfaraz

datanibbler
Champion
Champion

Hi,

I guess I understand. So you want to have two dimensions in your chart so that the user can drill down in the data from the Total into the parts?

That is not possible either in one chart or in one field (GUI-level vs. Scripting_level) - you can apply that MATCH() or WildMatch() function in the script or on the GUI, but you can only match one value with one text in one expression. So you need two similar Wildmatch() functions which will make up two dimensions - it is more resource-friendly to do so in the script, but it will work on the GUI.

With the PICK(MATCH()) it would look roughly like this:

= PICK(Wildmatch([value], 75, 80, 82),

// match value 75

'text_#1,

// match value 80

'text_#2,

// match value 82

'text_#3

)

HTH

sarfaraz_sheikh
Contributor III
Contributor III
Author

.......any other alternate option for the same on chart level to do so ...

Sarfaraz