<?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: null subtotal in pivot table with pick match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508235#M599670</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd question why you're trying to do this using pick match&lt;/P&gt;&lt;P&gt;is it that your Fiscal_Quarter_Year is not associated with your InstallationDate field? If so, I would resolve this issue in the load script and avoid having to use a clunky expression. If you do so, you can simply use the expression sum(SerialNbrItemQty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 15:52:00 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2018-11-16T15:52:00Z</dc:date>
    <item>
      <title>null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508209#M599668</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Do you know how can I calculate the subtotal value within a pivot table using pick match in the expression?&lt;/P&gt;&lt;P&gt;The subtotal is OK when I select one possible value defined in the match function, but if I do not select any or more than one I get a null.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="subtotal null.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/468iE7760849DB46DA82/image-size/large?v=v2&amp;amp;px=999" role="button" title="subtotal null.PNG" alt="subtotal null.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="subtotal ok.PNG" style="width: 377px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/469i61AF54E9A4082F7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="subtotal ok.PNG" alt="subtotal ok.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set analysis:&lt;BR /&gt;pick(Match(Fiscal_Year_Quarter,$(=concat(distinct chr(39) &amp;amp; Fiscal_Year_Quarter &amp;amp; chr(39), ','))&lt;BR /&gt;),&lt;BR /&gt;sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',1),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',1),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),&lt;BR /&gt;sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',2),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',2),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),&lt;BR /&gt;sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',3),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',3),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),&lt;BR /&gt;sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',4),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',4),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),&lt;BR /&gt;sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',5),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',5),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty))&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508209#M599668</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508227#M599669</link>
      <description>Would you be able to attach a sample to check this out?</description>
      <pubDate>Fri, 16 Nov 2018 15:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508227#M599669</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-16T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508235#M599670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd question why you're trying to do this using pick match&lt;/P&gt;&lt;P&gt;is it that your Fiscal_Quarter_Year is not associated with your InstallationDate field? If so, I would resolve this issue in the load script and avoid having to use a clunky expression. If you do so, you can simply use the expression sum(SerialNbrItemQty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508235#M599670</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2018-11-16T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508238#M599671</link>
      <description>&lt;P&gt;Hi stalwar1,&lt;/P&gt;&lt;P&gt;I can't upload a sample due to it's confidential data.&lt;BR /&gt;I'll write down an example so maybe you can understand better what's my problem.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;pick(match(status, 'A', 'B'), sum({&amp;lt;Product='A'&amp;gt;}Revenue), sum({&amp;lt;Product='B'&amp;gt;}Revenue))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Imagine we have a pivot table to display the total revenue by product. How can I get the subtotal (sum of revenue for both products) if I don't select either A or B?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508238#M599671</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508241#M599672</link>
      <description>Hi Marcus,&lt;BR /&gt;&lt;BR /&gt;It's a little bit tricky.&lt;BR /&gt;&lt;BR /&gt;I have a "reporting period" which is linked with the master calendar so with Fiscal_Quarter_Year.&lt;BR /&gt;Every "reporting period" has a "InstallationDate" which can be different.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 16 Nov 2018 15:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508241#M599672</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508248#M599673</link>
      <description>&lt;P&gt;How do you define&amp;nbsp;&lt;SPAN&gt;vQuarterStartDates? It seems to be an issue which might be related to your set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the pick match statement is only used for the totals? Row level have another expression?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508248#M599673</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-16T16:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508252#M599674</link>
      <description>vQuarterStartDates and vQuarterEndDates are defined in the script as per below:&lt;BR /&gt;&lt;BR /&gt;vQuarterStartDates = '2017-11-01','2018-02-01','2018-05-01','2018-08-01','2018-11-01'&lt;BR /&gt;vQuarterEndDates = '2018-01-01','2018-04-01','2018-07-01','2018-10-01','2019-01-01'&lt;BR /&gt;&lt;BR /&gt;No, the pick match statement is used for the whole column.</description>
      <pubDate>Fri, 16 Nov 2018 16:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508252#M599674</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508258#M599675</link>
      <description>&lt;P&gt;Can you try few things and post an image of them&lt;/P&gt;&lt;P&gt;1) Can you just used this as an expression and see what you get as an output when you select 1 vs multiple&amp;nbsp;&lt;SPAN&gt;Fiscal_Year_Quarter&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;InstallationDate={"$(='&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',1),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',1),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date = {$(=vQuarterEndDates)}&amp;gt;}SerialNbrItemQty)&lt;/PRE&gt;&lt;P&gt;2) Can you also post an image of this as a separate expression in your chart. Just curious to see what it evaluates to in the chart.&lt;/P&gt;&lt;PRE&gt;=$(=Concat(DISTINCT Chr(39) &amp;amp; Fiscal_Year_Quarter &amp;amp; Chr(39), ','))&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508258#M599675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-16T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508270#M599676</link>
      <description>&lt;P&gt;1) The new expression is always 0.&lt;/P&gt;&lt;P&gt;2)&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1.PNG" style="width: 603px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/483i07EBA80A84494A71/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2.PNG" style="width: 590px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/484i01C5D85999B29835/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3.PNG" style="width: 523px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/485iF165D72AB6A83B6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508270#M599676</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508274#M599677</link>
      <description>&lt;P&gt;I see the problem... what all dimensions do you have in your chart? You need to add this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Sum(Aggr(&lt;/FONT&gt;
pick(Match(Fiscal_Year_Quarter,$(=concat(distinct chr(39) &amp;amp; Fiscal_Year_Quarter &amp;amp; chr(39), ','))
),
sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',1),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',1),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),
sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',2),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',2),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),
sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',3),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',3),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),
sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',4),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',4),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty),
sum({&amp;lt; InstallationDate={"$(= '&amp;gt;=' &amp;amp; Date(PurgeChar(SubField(vQuarterStartDates,',',5),chr(39)),'DD/MM/YYYY 00:00:00') &amp;amp; '&amp;lt;' &amp;amp; Date(Addmonths(PurgeChar(SubField(vQuarterEndDates,',',5),chr(39)),1),'DD/MM/YYYY 00:00:00'))"}, Month_Date={$(=vQuarterEndDates)} &amp;gt;}SerialNbrItemQty))
&lt;FONT color="#FF0000"&gt;, YourDimensionsHere))&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508274#M599677</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-16T16:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: null subtotal in pivot table with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508276#M599678</link>
      <description>Excellent! Now it's working!&lt;BR /&gt;&lt;BR /&gt;Thanks a lot :)!</description>
      <pubDate>Fri, 16 Nov 2018 16:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-subtotal-in-pivot-table-with-pick-match/m-p/1508276#M599678</guid>
      <dc:creator>Alex</dc:creator>
      <dc:date>2018-11-16T16:30:14Z</dc:date>
    </item>
  </channel>
</rss>

