<?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 Show Column If not working as expected in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-Column-If-not-working-as-expected-in-Pivot-Table/m-p/1877654#M72344</link>
    <description>&lt;P&gt;I am having trouble getting the show column if function to work as expected.&lt;/P&gt;
&lt;P&gt;I have one field "Month Year" as the columns in my pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a flag field that has these values (straight table to illustrate the values, not the pivot I want to modify):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_0-1641408132894.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69636i4F2762DF3E887D0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_0-1641408132894.png" alt="bschnug_0-1641408132894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As of now, the columns in my pivot table show every date:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_2-1641408398950.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69638i160F91FD9A21CB7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_2-1641408398950.png" alt="bschnug_2-1641408398950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to only show columns where the value of the flag for each date is 1.&lt;/P&gt;
&lt;P&gt;However, when I use this formula:&lt;/P&gt;
&lt;P&gt;if(Rolling12Flag=1,1,0) &lt;STRONG&gt;or&lt;/STRONG&gt; if(Rolling12Flag='1',1,0), the output only shows a blank in the column (all a single column with no field) and the data tab gives me this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_1-1641408298191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69637i827B247E24DBFBDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_1-1641408298191.png" alt="bschnug_1-1641408298191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas as to why this may be the case?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 18:49:08 GMT</pubDate>
    <dc:creator>bschnug</dc:creator>
    <dc:date>2022-01-05T18:49:08Z</dc:date>
    <item>
      <title>Show Column If not working as expected in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Column-If-not-working-as-expected-in-Pivot-Table/m-p/1877654#M72344</link>
      <description>&lt;P&gt;I am having trouble getting the show column if function to work as expected.&lt;/P&gt;
&lt;P&gt;I have one field "Month Year" as the columns in my pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a flag field that has these values (straight table to illustrate the values, not the pivot I want to modify):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_0-1641408132894.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69636i4F2762DF3E887D0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_0-1641408132894.png" alt="bschnug_0-1641408132894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As of now, the columns in my pivot table show every date:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_2-1641408398950.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69638i160F91FD9A21CB7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_2-1641408398950.png" alt="bschnug_2-1641408398950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to only show columns where the value of the flag for each date is 1.&lt;/P&gt;
&lt;P&gt;However, when I use this formula:&lt;/P&gt;
&lt;P&gt;if(Rolling12Flag=1,1,0) &lt;STRONG&gt;or&lt;/STRONG&gt; if(Rolling12Flag='1',1,0), the output only shows a blank in the column (all a single column with no field) and the data tab gives me this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bschnug_1-1641408298191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69637i827B247E24DBFBDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bschnug_1-1641408298191.png" alt="bschnug_1-1641408298191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas as to why this may be the case?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 18:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Column-If-not-working-as-expected-in-Pivot-Table/m-p/1877654#M72344</guid>
      <dc:creator>bschnug</dc:creator>
      <dc:date>2022-01-05T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show Column If not working as expected in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Column-If-not-working-as-expected-in-Pivot-Table/m-p/1877804#M72354</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try set analysis.&lt;/P&gt;
&lt;P&gt;e.g Sum({&amp;lt;Rolling12MonthsFlag = {1}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;This expression will give you sales values only for MonthYears where flag=1&amp;nbsp; &amp;nbsp; i.e Jan 21 to Dec 21&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Column-If-not-working-as-expected-in-Pivot-Table/m-p/1877804#M72354</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2022-01-06T06:38:07Z</dc:date>
    </item>
  </channel>
</rss>

