<?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: selecting one field selects two fields with somewhat identical name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513439#M1122153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression is picking up the substring "Description". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better conditional expression(s) would be:&lt;/P&gt;&lt;P&gt;GetSelectedCount([$Field]) AND sum(if([$Field]='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Invoice Line Description'&lt;/SPAN&gt;',1))&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 08:10:32 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-01-15T08:10:32Z</dc:date>
    <item>
      <title>selecting one field selects two fields with somewhat identical name</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513438#M1122152</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;&lt;/P&gt;&lt;P&gt;I have a list box where I am populating all the fields from the Fact table using&lt;/P&gt;&lt;P&gt;if ($Table = 'FACT' , $Field)&lt;/P&gt;&lt;P&gt;and I have a straight table where I have taken all these fields but with an Enable condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when the user selects some field from the Listbox, then that field populates all the values in the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the issue is when I select field like Invoice Line Description, I get Invoice Line Description values and Description values&lt;/P&gt;&lt;P&gt;(Description being another field in the table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the straight table enable condition, I am writing:&lt;/P&gt;&lt;P&gt;For Invoice Line Description - Index( chr(39) &amp;amp; if(GetSelectedCount($Field) &amp;gt;= 1,concat($Field, chr(39)&amp;amp;','&amp;amp;chr(39))) &amp;amp; chr(39),'Invoice Line Description')&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Description - Index( chr(39) &amp;amp; if(GetSelectedCount($Field) &amp;gt;= 1,concat($Field, chr(39)&amp;amp;','&amp;amp;chr(39))) &amp;amp; chr(39),'Description')&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the image for better understanding. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The title in the straight table shows correct value i.e, 1 of 133 but data is populated from both the fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 07:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513438#M1122152</guid>
      <dc:creator>manisha_uit</dc:creator>
      <dc:date>2014-01-15T07:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: selecting one field selects two fields with somewhat identical name</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513439#M1122153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression is picking up the substring "Description". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better conditional expression(s) would be:&lt;/P&gt;&lt;P&gt;GetSelectedCount([$Field]) AND sum(if([$Field]='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Invoice Line Description'&lt;/SPAN&gt;',1))&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 08:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513439#M1122153</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-01-15T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: selecting one field selects two fields with somewhat identical name</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513440#M1122154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the expression which you have shared is also giving both Invoice Line Desc and Desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513440#M1122154</guid>
      <dc:creator>manisha_uit</dc:creator>
      <dc:date>2014-01-15T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: selecting one field selects two fields with somewhat identical name</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513441#M1122155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Rob. It worked perfect with a slight change in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount([$Field]) AND sum(if([$Field]='Invoice Line Description',1))&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 13:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-one-field-selects-two-fields-with-somewhat-identical/m-p/513441#M1122155</guid>
      <dc:creator>manisha_uit</dc:creator>
      <dc:date>2014-01-15T13:20:13Z</dc:date>
    </item>
  </channel>
</rss>

