<?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: Using 2nd selected value as a Dim in Alternate State in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882898#M307916</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 can try to use a IF in your dimension which can be poor in performance but it depends on the size of your application.&lt;/P&gt;&lt;P&gt;For example with something like this in the dimension expression and a dimension limit to have only 2 values displayed:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=mid(concat({$}distinct NAME,chr(39)&amp;amp;','&amp;amp;chr(39)),index(concat({$}distinct NAME,chr(39)&amp;amp;','&amp;amp;chr(39)),chr(39)&amp;amp;','&amp;amp;chr(39))+2)&amp;amp;chr(39))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 06:37:01 GMT</pubDate>
    <dc:creator>vincent_ardiet</dc:creator>
    <dc:date>2015-05-06T06:37:01Z</dc:date>
    <item>
      <title>Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882894#M307912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use only 2nd, 3rd, 4th from the top of selected values in listbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I'd like to use 2nd or 3rd value from the top of selected values in listbox and use it as a dimension in table with Alternate State. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 22:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882894#M307912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T22:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882895#M307913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to get&lt;/P&gt;&lt;P&gt;2nd value - Subfield(Concat(Distinct YourField, ';'), ';', &lt;STRONG&gt;2&lt;/STRONG&gt;)&lt;BR /&gt;3rd value - Subfield(Concat(Distinct YourField, ';'), ';', &lt;STRONG&gt;3&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, here sorting of the field values/load order would play an important role to decide which value comes first but the order of selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882895#M307913</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-06T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882896#M307914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; But how can I use it as a dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882896#M307914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T06:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882897#M307915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share a sample qvw explaining the requirement a bit more in detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882897#M307915</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-06T06:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882898#M307916</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 can try to use a IF in your dimension which can be poor in performance but it depends on the size of your application.&lt;/P&gt;&lt;P&gt;For example with something like this in the dimension expression and a dimension limit to have only 2 values displayed:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=mid(concat({$}distinct NAME,chr(39)&amp;amp;','&amp;amp;chr(39)),index(concat({$}distinct NAME,chr(39)&amp;amp;','&amp;amp;chr(39)),chr(39)&amp;amp;','&amp;amp;chr(39))+2)&amp;amp;chr(39))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882898#M307916</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-05-06T06:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882899#M307917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882899#M307917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T06:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882900#M307918</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;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: YourField&lt;/P&gt;&lt;P&gt;Expression: Sum({&amp;lt;YourField={"$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Subfield(Concat(Distinct YourField, ';'), ';', &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;)", &lt;SPAN style="font-size: 13.3333330154419px;"&gt;"$(=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Subfield(Concat(Distinct YourField, ';'), ';', &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)"&lt;/SPAN&gt; }&amp;gt;} Measure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882900#M307918</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-06T06:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882901#M307919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached file for solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882901#M307919</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-06T06:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2nd selected value as a Dim in Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882902#M307920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Dimension: YourField&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Expression: Sum({&amp;lt;YourField={"$(=&lt;SPAN style="font-style: inherit;"&gt;Subfield(Concat(Distinct YourField, ';'), ';', &lt;/SPAN&gt;2&lt;SPAN style="font-style: inherit;"&gt;)&lt;/SPAN&gt;)",&lt;SPAN style="font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;"$(=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;Subfield(Concat(Distinct YourField, ';'), ';', 3&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;)"&lt;/SPAN&gt; }&amp;gt;} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;That helped. Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-2nd-selected-value-as-a-Dim-in-Alternate-State/m-p/882902#M307920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T06:57:39Z</dc:date>
    </item>
  </channel>
</rss>

