<?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 Dual function?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523281#M1131952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I am confusing with Dual() function...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know breif of Dual() function..&lt;/P&gt;&lt;P&gt;what is the purpose???&lt;/P&gt;&lt;P&gt;which type of scenario's using ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 09:14:55 GMT</pubDate>
    <dc:creator>Nagaraju_KCS</dc:creator>
    <dc:date>2013-11-14T09:14:55Z</dc:date>
    <item>
      <title>Dual function??</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523281#M1131952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I am confusing with Dual() function...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know breif of Dual() function..&lt;/P&gt;&lt;P&gt;what is the purpose???&lt;/P&gt;&lt;P&gt;which type of scenario's using ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523281#M1131952</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2013-11-14T09:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function??</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523282#M1131953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523282#M1131953</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-14T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function??</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523283#M1131954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;you could use it to sort a field, for example.&lt;/P&gt;&lt;P&gt;From the help: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor573"&gt;&lt;/A&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;Dual&lt;/SPAN&gt;&lt;/H1&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;dual&lt;/SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s , x&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Forced association of an arbitrary string representation &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt; with a given number representation &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt;. In QlikView, when several data items read into one field have different string representations but the same valid number representation, they will all share the first string representation encountered. The &lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;dual&lt;/SPAN&gt; 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. &lt;/P&gt;&lt;P class="note"&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;BR /&gt;If a &lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;dual&lt;/SPAN&gt; value is too large to fit in a field object, it will be represented by ## and not truncated with ... like a string.&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;load &lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;dual&lt;/SPAN&gt; ( string,numrep ) as DayOfWeek inline &lt;/P&gt;&lt;P class="Code"&gt;[ string,numrep &lt;/P&gt;&lt;P class="Code"&gt;Monday,0 &lt;/P&gt;&lt;P class="Code"&gt;Tuesday,1 &lt;/P&gt;&lt;P class="Code"&gt;Wednesday,2 &lt;/P&gt;&lt;P class="Code"&gt;Thursday,3 &lt;/P&gt;&lt;P class="Code"&gt;Friday,4 &lt;/P&gt;&lt;P class="Code"&gt;Saturday,5 &lt;/P&gt;&lt;P class="Code"&gt;Sunday,6 ]; &lt;/P&gt;&lt;P class="Code"&gt;load Date, weekday(Date) as DayOfWeek from afile.csv; &lt;/P&gt;&lt;P&gt;The script example will generate a field &lt;SPAN class="Italic"&gt;DayOfWeek&lt;/SPAN&gt; with the weekdays written in clear text. QlikView will for all purposes regard the field as a numeric field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523283#M1131954</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-11-14T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function??</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523284#M1131955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not quite sure about it myself, haven't used it often yet. - It's explained in the help in any case.&lt;/P&gt;&lt;P&gt;Generally, the DUAL() function assigns both a string-value and a numeric_value to something (e.g. a month can have both the values 'June' and 6) - you need that e.g. to make a set_expression designing the past month for you cannot calculate 'June-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function/m-p/523284#M1131955</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-11-14T09:17:46Z</dc:date>
    </item>
  </channel>
</rss>

