<?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 Conditional show/hide similar column names in Pivot table - New Task in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933833#M76917</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;In my pivot table I try to conditionally show below Fields with similar name&lt;/P&gt;
&lt;P&gt;Vendor_Country &amp;amp; Vendor&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt; - when I select Vendor Country, the Vendor is also getting displayed in the pivot&lt;/P&gt;
&lt;P&gt;I use separate filter pane object to choose required fields to display in table using below expression and this expression shows only required fields need to display in filter object&lt;/P&gt;
&lt;P&gt;=Aggr(&lt;BR /&gt;Only({1&amp;lt;[$Field] = p({1&amp;lt;[$Field] = { "Vendor",,"Vendor_Country"}&amp;gt;})&amp;gt;} [$Field])&lt;BR /&gt;, [$Field])&lt;/P&gt;
&lt;P&gt;and I use below expression in conditional show for those two fields to hide or show according to the user selection&lt;/P&gt;
&lt;P&gt;=count(GetFieldSelections($Field)&amp;gt;0) and substringcount(concat($Field),"Vendor_Country")&amp;nbsp; &amp;nbsp;--- for Vendor_Country&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;=count(GetFieldSelections($Field)&amp;gt;0) and substringcount(concat($Field),"Vendor")&amp;nbsp; &amp;nbsp;------&amp;nbsp; &amp;nbsp;for Vendor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone please help where do I need to correct or add any expression so that only Vendor_Country alone displays in pivot when I select Vendor_Country in filter instead of displaying both fields&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2022 05:49:45 GMT</pubDate>
    <dc:creator>tajmohamed30</dc:creator>
    <dc:date>2022-05-21T05:49:45Z</dc:date>
    <item>
      <title>Conditional show/hide similar column names in Pivot table - New Task</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933833#M76917</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;In my pivot table I try to conditionally show below Fields with similar name&lt;/P&gt;
&lt;P&gt;Vendor_Country &amp;amp; Vendor&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt; - when I select Vendor Country, the Vendor is also getting displayed in the pivot&lt;/P&gt;
&lt;P&gt;I use separate filter pane object to choose required fields to display in table using below expression and this expression shows only required fields need to display in filter object&lt;/P&gt;
&lt;P&gt;=Aggr(&lt;BR /&gt;Only({1&amp;lt;[$Field] = p({1&amp;lt;[$Field] = { "Vendor",,"Vendor_Country"}&amp;gt;})&amp;gt;} [$Field])&lt;BR /&gt;, [$Field])&lt;/P&gt;
&lt;P&gt;and I use below expression in conditional show for those two fields to hide or show according to the user selection&lt;/P&gt;
&lt;P&gt;=count(GetFieldSelections($Field)&amp;gt;0) and substringcount(concat($Field),"Vendor_Country")&amp;nbsp; &amp;nbsp;--- for Vendor_Country&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;=count(GetFieldSelections($Field)&amp;gt;0) and substringcount(concat($Field),"Vendor")&amp;nbsp; &amp;nbsp;------&amp;nbsp; &amp;nbsp;for Vendor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone please help where do I need to correct or add any expression so that only Vendor_Country alone displays in pivot when I select Vendor_Country in filter instead of displaying both fields&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 05:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933833#M76917</guid>
      <dc:creator>tajmohamed30</dc:creator>
      <dc:date>2022-05-21T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional show/hide similar column names in Pivot table - New Task</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933851#M76921</link>
      <description>&lt;P&gt;Hi, thats because '&lt;SPAN&gt;Vendor_Country' contains 'Vendor', try adding separators to limit values, something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;substringcount('|'&amp;amp;concat($Field,'|')&amp;amp;'|','|Vendor_Country|')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;substringcount('|'&amp;amp;concat($Field,'|')&amp;amp;'|','|Vendor|')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 07:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933851#M76921</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-05-21T07:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional show/hide similar column names in Pivot table - New Task</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933870#M76923</link>
      <description>&lt;P&gt;getselectedcount($Field) &amp;gt; 0 and match($Field,'&lt;SPAN&gt;Vendor_Country&lt;/SPAN&gt;')&lt;/P&gt;
&lt;P&gt;getselectedcount($Field) &amp;gt; 0 and match($Field,'&lt;SPAN&gt;Vendor&lt;/SPAN&gt;')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally found the solution after spending hours and by combining ideas from different forums &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks all, I hope this solution might help someone in future&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 10:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933870#M76923</guid>
      <dc:creator>tajmohamed30</dc:creator>
      <dc:date>2022-05-21T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional show/hide similar column names in Pivot table - New Task</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933871#M76924</link>
      <description>&lt;P&gt;tried but haven't anyway found the solution thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 10:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-show-hide-similar-column-names-in-Pivot-table-New/m-p/1933871#M76924</guid>
      <dc:creator>tajmohamed30</dc:creator>
      <dc:date>2022-05-21T10:26:15Z</dc:date>
    </item>
  </channel>
</rss>

