<?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: Chart Accumulation based on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559545#M208830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Gysbert i have one more query for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is Set Analysis involved i try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$(vFlag1)+$(vFlag2)&amp;lt;Month=, Year=, YearMonth = {"$(=Date(Addmonths(Date#(YearMonth,'YYYYMM'),-2),'YYYYMM'))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it only brings back the value of Flag1 if it is selected. if Flag1 and Flag2 are both selected null is returned. How would you add this 'expansion' into a set analysis piece?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 11:15:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-06T11:15:36Z</dc:date>
    <item>
      <title>Chart Accumulation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559541#M208826</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;Please see attached an example document. There you will see that there are 2 flags and a simple straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to do is select the flags together. When the 2 flags are selected i need both sets of products to appear in the chart. At the moment the intersection of the 2 flags is showing up in the charts when they are selected. I need those flags to accumulate onto each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to try explain again. When Flag1 and Flag2 are selected. I need ProductCodes 1-6 to appear in the chart with their relative Sales and Quantity figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 14:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559541#M208826</guid>
      <dc:creator />
      <dc:date>2013-08-05T14:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559542#M208827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 17:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559542#M208827</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-05T17:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559543#M208828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only have personal version QV so can't see your file, but I think I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might try a set analysis solution with alternate states to let the chart show the two list box selections independantly of each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, you'd create two alternate states (State 1 and State 2), then assign one state to flag 1 and the other to flag 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your straight table, you'd make one expression that has {State 1} as the first bit in the () and {State 2} in the same expression used again for a second column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should be one column responding to {State 1} and the other to {State 2}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your dimensions might work the same way i.e. =({State 1} Sales), =({State 1} Quantity),=({State 2} Sales), =({State 2} Quantity)&amp;nbsp; (I've done this with expressions and bar charts, but not dimensions and straight charts.&amp;nbsp; It seems like it should work okay though.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you might be able to make flag 1 and flag 2 into a single flag field in the script.&lt;/P&gt;&lt;P&gt;if(Flag 1, Dual('Flag 1', 1),&lt;/P&gt;&lt;P&gt;if(Flag 2, Dual('Flag 2', 2) as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you'd have a single field on your chart for both flags and you could select one or the other or both, and the chart totals could total that as a single field.&amp;nbsp; (And you could still leave separate flag 1 and flag 2 fields if you want to use those separetly somewhere else.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 17:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559543#M208828</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-08-05T17:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559544#M208829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 06:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559544#M208829</guid>
      <dc:creator />
      <dc:date>2013-08-06T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559545#M208830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Gysbert i have one more query for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is Set Analysis involved i try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$(vFlag1)+$(vFlag2)&amp;lt;Month=, Year=, YearMonth = {"$(=Date(Addmonths(Date#(YearMonth,'YYYYMM'),-2),'YYYYMM'))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it only brings back the value of Flag1 if it is selected. if Flag1 and Flag2 are both selected null is returned. How would you add this 'expansion' into a set analysis piece?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-based-on-selection/m-p/559545#M208830</guid>
      <dc:creator />
      <dc:date>2013-08-06T11:15:36Z</dc:date>
    </item>
  </channel>
</rss>

