Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
arjakumar
Contributor III
Contributor III

where we use Dual funtion???

where we use Dual funtion???

7 Replies
Chanty4u
MVP
MVP

Hi,

Please check below link

How to use- Dual()

Not applicable

Take a look below example  for sorting purpose i used dual function,

load *,

if(AGE>=0 and AGE<=5,Dual('0-5',1),

if(AGE>=6 and AGE<=10,Dual('6-10',2),

if(AGE>=11 and AGE<=15,Dual('11-15',3),

if(AGE>=16 and AGE<=20,Dual('16-20',4),

))) as AGE_GROUP

balar025
Creator III
Creator III

real time use of Dual(Text,Number) is when we want to manipulate output based on need.

For example,

In bar chart, i want to manipulate hover values.

Like Dual('Current Year Sales is '&sum(Sales),sum(Sales))

Might this clear your doubt.

arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Arja,

dual function is typically used early in the script, before other data is read into the field concerned, in order to create that first string representation, which will be shown in list boxes etc. Qlikview has specific way of storing data. Each field is represented by Text and Number data type called dual

Syntax:

Dual(text, number);


Thanks,

Arvind Patil

arjakumar
Contributor III
Contributor III
Author

Where we use dual function in section access? Please provide scenario.

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Arja,

why would you want to use DUAL in section access?

Marcus

Siva_Sankar
Master II
Master II

/people/arjakumar/activity

Based on your activity, I assume that you are preparing for an interview. All questions are open ended also you didnt mark any answer as correct.

Capture.JPG

Recommending you learn qlikview and then try asking questions on what it is.