<?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/933778#M322564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 08:24:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-17T08:24:03Z</dc:date>
    <item>
      <title>dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933773#M322559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Is it possible to use dual function for a dimension?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you in advance,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 18:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933773#M322559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-16T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933774#M322560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is. Dimension is only a way a field is used. A field could be used both as a dimension and in a regular expression for a measure. So any field can have all, some or none of its values as dual. The dual is a function to create a dual value. There are no restrictions on the usage of a field with dual values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933774#M322560</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-16T19:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933775#M322561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you say why the dual function doesn't work correctly as a dimension in my example?&lt;/P&gt;&lt;P&gt;see the file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933775#M322561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-16T20:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933776#M322562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax for dual() is dual(text, number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your calculated dimension,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=dual(Only(Media), Медиа)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both fields are showing only text values&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.´&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Besides this, the only() function seems a bit strange here. Are you looking for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=aggr( Only(Media), &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Медиа)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933776#M322562</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-16T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933777#M322563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Dual function will not work as you try to assign two text values. Dual assigns one text value and one numeric value as the compound data value within a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus you can use Медиа directly without the need for a numeric value. Dimensions does not need to be numeric. They can be pure text/alphanumeric values without a number associated with them. However you could assign a number to be associated with each text value and that will also determine the sort order of the field. But the text-part will what will be displayed in most of the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you example I would modify the load script to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual( &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Медиа , RecNo() ) AS &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Медиа,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual( Media , RecNo() ) AS Media,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Медиа, Media, Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ТВ, TV, 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Радио, Radio, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Пресса, Press, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could use either &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Медиа or Media as a dimension without employing the Dual function as that has already been done in your load script. You could of course also assign directly a number for each media instead of using RecNo() as I did.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-08-17 #1.PNG" class="jive-image image-1" src="/legacyfs/online/96199_2015-08-17 #1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 22:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933777#M322563</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-16T22:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933778#M322564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 08:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933778#M322564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933779#M322565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 09:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933779#M322565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T09:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: dual function</title>
      <link>https://community.qlik.com/t5/QlikView/dual-function/m-p/933780#M322566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please short the second dimension alphabetically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 10:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-function/m-p/933780#M322566</guid>
      <dc:creator>sanjay006</dc:creator>
      <dc:date>2017-05-15T10:07:13Z</dc:date>
    </item>
  </channel>
</rss>

