<?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: getfieldselection from dual in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460108#M171760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again guys,&lt;/P&gt;&lt;P&gt;In My solution User has 5 choice, he can select 1,2 ..5 Now if user select 1 then I want to show different expression and if chooses 2 then different expression. if user selected two then show all expression for two. but user has option to select a "long description" which I can not use to compare in expression but I have one more associate code which is alphanumeric. So this is the scenario. its simple to use by concat but I am trying to get some good alternative and also enhance my knowledge on dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2012 18:53:17 GMT</pubDate>
    <dc:creator>jaspal_icon</dc:creator>
    <dc:date>2012-11-22T18:53:17Z</dc:date>
    <item>
      <title>getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460103#M171755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to get the corresponding column value of one row. I have this table:&lt;/P&gt;&lt;P&gt;Table_Prod_Category&lt;/P&gt;&lt;P&gt;Prod_Id&amp;nbsp;&amp;nbsp; ProdName&amp;nbsp;&amp;nbsp; CatgName&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Old&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Prod_Id, Dual(ProdName,CatgName) as DualProd&lt;/P&gt;&lt;P&gt;from Table_Prod_Category;&lt;/P&gt;&lt;P&gt;I have one list box of "DualProd" Now I want in textbox the Selected value of list box(Only CatgName, not ProdName).&lt;/P&gt;&lt;P&gt;Please help me how to get second value from dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 17:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460103#M171755</guid>
      <dc:creator>jaspal_icon</dc:creator>
      <dc:date>2012-11-22T17:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460104#M171756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can. The second argument of the dual function should be a number. If it was you could get it with num(DualProd), but since 'New' and 'Old' aren't numbers it won't return a result. What's wrong with setting the text box to =CatgName? That will show the CatgName of the ProdName you select as long as there's only one CatgName per product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460104#M171756</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-22T18:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460105#M171757</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 class="syntax"&gt;&lt;STRONG&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;/STRONG&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P&gt;Forced association of an arbitrary &lt;STRONG&gt;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;.&lt;/STRONG&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 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&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&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 class="Code"&gt;&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;Note:&lt;/P&gt;&lt;P&gt;From help, you can noted that, you can't able to represents both as string value in dual() fuction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460105#M171757</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-22T18:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460106#M171758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert and Mayil,&lt;/P&gt;&lt;P&gt;My Concern is to get multiple category name when user select Multiple Prod Name, or understand it as User working on "Description" to select something and I want to work on code which is alphanumeric in background. The other solution could be to be concatenate(prodName&amp;amp;'|'&amp;amp;CatgName) them and while showing in list box I take Left from "|" symbol and then when user select multiple items then I will get all by two separator, first with "|" separator and then other with"," delimeter those which are mutli selected.&lt;/P&gt;&lt;P&gt;If could use string, string in dual and can retrieve that in getfieldselection then it will be easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460106#M171758</guid>
      <dc:creator>jaspal_icon</dc:creator>
      <dc:date>2012-11-22T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460107#M171759</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, may be it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Prod_Id,ProdName,CatgName,ProdName&amp;amp;' '&amp;amp;CatgName as Key from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use key field to display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460107#M171759</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-22T18:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection from dual</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460108#M171760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again guys,&lt;/P&gt;&lt;P&gt;In My solution User has 5 choice, he can select 1,2 ..5 Now if user select 1 then I want to show different expression and if chooses 2 then different expression. if user selected two then show all expression for two. but user has option to select a "long description" which I can not use to compare in expression but I have one more associate code which is alphanumeric. So this is the scenario. its simple to use by concat but I am trying to get some good alternative and also enhance my knowledge on dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-from-dual/m-p/460108#M171760</guid>
      <dc:creator>jaspal_icon</dc:creator>
      <dc:date>2012-11-22T18:53:17Z</dc:date>
    </item>
  </channel>
</rss>

