<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dual-help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673484#M1088055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 08:38:02 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-06-13T08:38:02Z</dc:date>
    <item>
      <title>Dual-help</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673480#M1088051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiee&lt;/P&gt;&lt;P&gt;Will anyone tell me how dual function works with exapmle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 04:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673480#M1088051</guid>
      <dc:creator />
      <dc:date>2014-06-13T04:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dual-help</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673481#M1088052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;You use dual() when you need both a text and a numeric representation of a value. For instance, maybe you have a priority field.&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;High&lt;BR /&gt;Medium&lt;BR /&gt;Low&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;That's great for display, but not good for sorting, or taking the max(Priority), that kind of thing. So we might instead define it like this:&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;LOAD dual(Text,Number) as Priority&lt;BR /&gt;INLINE [&lt;BR /&gt;Text,Number&lt;BR /&gt;High,3&lt;BR /&gt;Medium,2&lt;BR /&gt;Low,1&lt;BR /&gt;];&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;Now, there might be other and even better ways to handle this particular example, but that's kind of the idea.&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;Dates WOULD be a very good example if they didn't have their own format. A date has a text representation like 'May 6, 2010', and also a numeric represenation, 40304. Normally, you want to see the text version, but you often want to sort and do mathematical manipulation using the underlying numeric, such as adding days to get a new date. Dual() makes some other sort of field behave similarly, where the text representation is what is normally displayed, but there's still a number in there that you can sort by and manipulate mathematically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;You can use Dual() for this purpose, it is a dual datatype what you have to do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;if(field='A', Dual('0-20000', 1),&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(field='A', Dual('20001-40000', 2),&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;'&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;'&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;'&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;Now in chart the values are automatically sorted by using the second parameter in Dual().&lt;/P&gt;&lt;P style="font-family: Arial; color: #737373; background-color: #f5f5f5;"&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 04:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673481#M1088052</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-06-13T04:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dual-help</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673482#M1088053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For more options visit this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/86646"&gt;Dual function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 04:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673482#M1088053</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-06-13T04:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dual-help</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673483#M1088054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you go through the help/ reference manual ? Dual is a functiobn that allows to represent a value as string while it's internal represenatation is numeric.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;Load Dual(String, Num) as Number ;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;String, Num&lt;/P&gt;&lt;P&gt;One, 1&lt;/P&gt;&lt;P&gt;Two, 2&lt;/P&gt;&lt;P&gt;Three, 3&lt;/P&gt;&lt;P&gt;Four, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the front end you will find Number field as string (One, Two..). However, if you use an expression like=Sum(Number), you get the numeric sum -10. This function is very useful for some situations like, when you need to sort a string field in a customized order. Here in the above example if you sort the field in numeric order you get One, Two, Three, Four, which would not be the case had the field been just a string field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 04:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673483#M1088054</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-13T04:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dual-help</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673484#M1088055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 08:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-help/m-p/673484#M1088055</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-13T08:38:02Z</dc:date>
    </item>
  </channel>
</rss>

