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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

'Dual' not working?please help

Hi,

I have below script in qvw. when I reload I can able to see in Flag column only START and GONE. Remaining are not loading into Flag column. Please can anyone suggest me is there any wrong in below script?

If (MixMatch(NAME,'XX',

'YY',

'ZZ',

'AA',

'BB',

'CC',

'DD',

'EE',

'FF',

'GG',

'HH',

'II',

'JJ',

'KK',

'LL',

'MM',

'NN',

'OO',

'PP',

'QQ,

'RR',

'SS',

'TT',

'UU',

'VV',

'WW'),Dual('START',1),

     If(MixMatch(NAME,'GONE'),Dual('GONE',2),

If(MixMatch(NAME,'QQ,

'RR',

'SS',

'TT',

'UU'),Dual('APP',3)

     If(MixMatch(NAME,'XX',

'YY',

'ZZ',

'AA',

'BB',

'CC',

'DD',

'EE',

'FF',

'GG',

'HH',

'II',

'JJ',

'KK',

'LL',

'MM',

'NN',

'OO',

'PP',

'VV',

'WW'),Dual('PROCESS',4),

     If(MixMatch(NAME,

'YY',

'ZZ',

'AA',

'BB',

'CC',

'DD',

'EE',

'FF',

'GG',

'HH',

'II',

'JJ',

'KK',

'LL',

'MM',

'NN',

'OO',

'PP',

'QQ),Dual('CON',5))))))                         as Flag

Thanks.

Labels (1)
43 Replies
swuehl
Champion III
Champion III

Did you name your Flag as Flag or NewFlag?

Or even FlagNew

sunny_talwar
MVP
MVP

Or FlagNew

Thanks swuehl

Not applicable
Author

I have used FlagNew. this is the one I used in the script.

sunny_talwar
MVP
MVP

Then try this expression

=Count({<FlagNew= {'START'}>} FlagNew)/Count{<FlagNew= {'GONE'}>} FlagNew)

Not applicable
Author

did try earlier. showing same 0%

sunny_talwar
MVP
MVP

Would you be able to create a list box for FlagNew and see if you see any values getting populated or its all empty?

Not applicable
Author

yes. in the list I can able to see below

START

GONE

APP

PROCESS

CON

SUCCESS

sunny_talwar
MVP
MVP

Do you see something when you use this expression alone =Count({<FlagNew= {'START'}>} FlagNew)

Not applicable
Author

yes. expression alone is working

sunny_talwar
MVP
MVP

I think you might just need the formatting to show the result. Try this:

=Num(Count({<FlagNew= {'START'}>} FlagNew)/Count{<FlagNew= {'GONE'}>} FlagNew), '#,##0.00%')