<?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 FUNCTION in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904012#M1008814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey You can refer to this link&amp;nbsp; very simple explanation &lt;A href="http://www.qlikviewaddict.com/2012/12/the-qlikview-dual-function.html" title="http://www.qlikviewaddict.com/2012/12/the-qlikview-dual-function.html"&gt;QlikView Addict: QlikView Functions: dual()&lt;/A&gt;:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2015 06:17:26 GMT</pubDate>
    <dc:creator>ankitbisht01</dc:creator>
    <dc:date>2015-06-26T06:17:26Z</dc:date>
    <item>
      <title>DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904007#M1008809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;What is DUAL function ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904007#M1008809</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2015-05-08T13:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904008#M1008810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dual() function is used for loading column with text as well as numeric value for the same. &lt;/P&gt;&lt;P&gt;Its generally used in Quarter calculation and in sorting &lt;/P&gt;&lt;P&gt;See the ex.&amp;nbsp; from QlikView help file - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;dual( &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. This function can be used in scripts and chart expressions.&lt;/P&gt;&lt;P&gt;In scripting, the 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. &lt;/P&gt;&lt;P class="note"&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;BR /&gt;If a dual 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 (scripting):&lt;/P&gt;&lt;P class="Code"&gt;load dual ( 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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904008#M1008810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-08T13:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904009#M1008811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a function to represent data in both text and numeric format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: Dual('January', 1): this will create a field value with a mask "January" and a numeric value "1". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the help's definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;dual( &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. This function can be used in scripts and chart expressions.&lt;/P&gt;&lt;P&gt;In scripting, the 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. &lt;/P&gt;&lt;P class="note"&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;BR /&gt;If a dual 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 (scripting):&lt;/P&gt;&lt;P class="Code"&gt;load dual ( 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>Fri, 08 May 2015 13:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904009#M1008811</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-08T13:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904010#M1008812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3858"&gt;Dual &amp;amp;amp; Exists – Useful Functions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2830"&gt;Data Types in QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904010#M1008812</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-08T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904011#M1008813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see that this has already been answered, but just to add a few more notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates in QlikView are all dual values, that is they have a text and a numeric representation.&amp;nbsp; That is why 8 May 2015 - 2 May 2015 will give you 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duals can be useful for any text that you want to sort in a different order to alphabetical, for example a workflow.&amp;nbsp; You can make Initial Contact = 1, through to Sale Closed = 11, with other steps in between.&amp;nbsp; The items can then sort on the number, but be displayed as the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A big gotcha with duals is that if you apply the same number to two different bits of text and show them in a list box, QlikView will only show one of the items of text.&amp;nbsp; It always gives numeric values precedence, so in that case it would assume that there is only one value, not two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps clarify a bit.&amp;nbsp; There is a lot more information on-line if you Google QlikView Dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904011#M1008813</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-08T20:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL FUNCTION</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904012#M1008814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey You can refer to this link&amp;nbsp; very simple explanation &lt;A href="http://www.qlikviewaddict.com/2012/12/the-qlikview-dual-function.html" title="http://www.qlikviewaddict.com/2012/12/the-qlikview-dual-function.html"&gt;QlikView Addict: QlikView Functions: dual()&lt;/A&gt;:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 06:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-FUNCTION/m-p/904012#M1008814</guid>
      <dc:creator>ankitbisht01</dc:creator>
      <dc:date>2015-06-26T06:17:26Z</dc:date>
    </item>
  </channel>
</rss>

