<?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: Pivot table - filter in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724342#M259877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/MartinPohl"&gt;MartinPohl&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 11:19:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-07T11:19:54Z</dc:date>
    <item>
      <title>Pivot table - filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724340#M259875</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 questions Q1 to Q33. i need to display only Q1 to Q13 in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script, dimensions and expressions used are as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Crosstable(Questions, Value,4)&lt;/P&gt;&lt;P&gt;SQL Select MYSTERY_SHOPPER, DEALER, COUNTRY, WAVE, Q1, Q2, Q3, Q4, Q5,Q6,Q7A,Q7B,Q8,Q9,Q10,Q11,Q12,Q13,&lt;/P&gt;&lt;P&gt;Q14,Q15A,Q15B,Q15C,Q15D,Q15F,Q15G,Q15H,Q15I,Q16,Q17,Q18,Q19,Q20,Q21,&lt;/P&gt;&lt;P&gt;Q22,Q23,Q24,Q25,Q26,Q27,Q28,Q29,Q30,Q31,Q32_A ,Q32_B,Q32_C,Q32_D Q33&lt;/P&gt;&lt;P&gt;From Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;1. =if (Match(Questions,'Q1','Q2','Q3','Q4','Q5','Q6','Q7A','Q7B','Q8','Q9','Q10','Q11','Q12','Q13'),Questions) &lt;/P&gt;&lt;P&gt;2. MYSTERY_SHOPPER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;if ( SecondaryDimensionality()=1 ,&lt;/P&gt;&lt;P&gt; if ( sum(Alt(Value,0)) = 1 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Yes',1) ,&amp;nbsp; if ( sum(Alt(Value,0)) = 0 , Dual('No',0) ,&amp;nbsp; sum(Alt(Value,0)))) &lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&amp;nbsp; num(sum ({&amp;lt;Questions={'Q1','Q2','Q3','Q4','Q5','Q6','Q7A','Q7B','Q8','Q9','Q10','Q11','Q12','Q13'}&amp;gt;}Alt(Value,0))/&lt;/P&gt;&lt;P&gt;&amp;nbsp; count ({&amp;lt;Questions={'Q1','Q2','Q3','Q4','Q5','Q6','Q7A','Q7B','Q8','Q9','Q10','Q11','Q12','Q13'}&amp;gt;}&amp;nbsp; Value ),'0%'&amp;nbsp; ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61850_filter.png" style="width: 620px; height: 287px;" /&gt;&lt;/P&gt;&lt;P&gt;Based on the filter in expression i am supposed to get Q1 to Q13.&amp;nbsp; i don't know why i am getting the the row before total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to avoid the row before total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724340#M259875</guid>
      <dc:creator />
      <dc:date>2014-07-07T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724341#M259876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;1. =if (Match(Questions,'Q1','Q2','Q3','Q4','Q5','Q6','Q7A','Q7B','Q8','Q9','Q10','Q11','Q12','Q13'),Questions) &lt;/P&gt;&lt;P&gt;returns Q1 - Q13 for Questions which are in the match&lt;/P&gt;&lt;P&gt;and null() for Queststions that aren't&lt;/P&gt;&lt;P&gt;These null-values are shown in the last line.&lt;/P&gt;&lt;P&gt;Suspress null values in the dimension tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724341#M259876</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-07-07T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724342#M259877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/MartinPohl"&gt;MartinPohl&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-filter-in-expression/m-p/724342#M259877</guid>
      <dc:creator />
      <dc:date>2014-07-07T11:19:54Z</dc:date>
    </item>
  </channel>
</rss>

