<?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: How to modify set analysis to sum all periods selected? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186726#M22166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;How does your modification look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 20:21:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-09-16T20:21:45Z</dc:date>
    <item>
      <title>How to modify set analysis to sum all periods selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186723#M22163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis: Sum({&amp;lt;[Fiscal Period Counter Month] = {"$(=max([Fiscal Period Counter Month]))"}&amp;gt;} [Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works &lt;EM&gt;perfectly &lt;/EM&gt;for its intended purpose. However, when we make selections it defaults to the Max fiscal period month selected. How do I code it to use max month unless selections are made? I've tried a handful of IF statements but to no avail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First image: June doesn't have an "EHV" sale so nothing is shown. Second image: Only April and May selected but only May sales are shown.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="137715" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137715_Capture.PNG" style="height: 243px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="137716" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/137716_Capture2.PNG" style="height: 236px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 14:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186723#M22163</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2016-09-16T14:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify set analysis to sum all periods selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186724#M22164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Fiscal Period Counter Month] *= {"$(=If(GetSelectedCount([Fiscal Period Counter Month]),'*',max([Fiscal Period Counter Month])))"}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186724#M22164</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify set analysis to sum all periods selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186725#M22165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I used a modified version of this using the GetSelectedCount function. Didn't know it existed before. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186725#M22165</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2016-09-16T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify set analysis to sum all periods selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186726#M22166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;How does your modification look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186726#M22166</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify set analysis to sum all periods selected?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186727#M22167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to expand on it cover several scenarios and added a variable,&lt;SPAN style="font-size: 13.3333px;"&gt;vPeriodCurrentMonth,&lt;/SPAN&gt; to contain the original Set Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Fiscal Period Month Year])=0 and GetSelectedCount([Profit Center Name])=0 and GetSelectedCount([LTC Type])=0 and GetSelectedCount([Customer Name])=0 and GetSelectedCount([MVA Class])=0&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( $(vPeriodCurrentMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Trans Sales]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+Sum( $(vPeriodCurrentMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Freight Sales]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+Sum( $(vPeriodCurrentMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rigging&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Trans Sales]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+Sum(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Freight Sales]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+Sum(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rigging&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-modify-set-analysis-to-sum-all-periods-selected/m-p/1186727#M22167</guid>
      <dc:creator>WiscoSippi</dc:creator>
      <dc:date>2016-09-16T20:30:30Z</dc:date>
    </item>
  </channel>
</rss>

