<?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: Aggregation of diagram data by clicking a button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930142#M527539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok this one is pretty similar to what i tried out before. Unforunately it does not work yet as you described.&lt;/P&gt;&lt;P&gt;But anyways! You pretty much gave me the solution to the much more important question i had before! So thank you - i guess i will find a solution for the second part with a bit of trial and error! So once again, thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 16:37:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-20T16:37:11Z</dc:date>
    <item>
      <title>Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930138#M527534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i created a diagram with 3 dimensions.&lt;/P&gt;&lt;P&gt;I am currently happy with the results. Short explanation about the contents you see in the screenshot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a bar diagram about all people visiting a place througout given years with gender F/M. (you can ignore the third dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what i would like to have for this diagram. I would like to add 2 buttons (they basically do the same):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i press the "aggregate gender" button. The split columns of (F/M) should sum up and only show the total amount per year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second button would be similar - would be an "aggregate year" button. If i press this button, all the years would fall together, so that i would only have 2 columns - F/M - with the total amount of visits for all years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? If so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 14:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930138#M527534</guid>
      <dc:creator />
      <dc:date>2015-10-20T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930139#M527536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, one option is to use a variable for each button and conditional dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In example the button to aggregate F/M can change vSplitGender between 1 and 0 and you can use this variable in conditional dimension:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102572_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the variable is 0, the dimension should disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before applying you can set the conditional to 0, this way you can check if the expected results will work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 14:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930139#M527536</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-20T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930140#M527537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot. I was not that familar with variables in QV yet - so great advice! Works fine!&lt;/P&gt;&lt;P&gt;So now with my button, i can change the value of the given variable to 1 or 0.&lt;/P&gt;&lt;P&gt;Is it possible to change it to 1 if the variable is 0 and to 1 if the variable is 0 with the same button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I entered this "experimental" code into the value field of the button (instead of 1 or 0). &lt;/P&gt;&lt;P&gt;if(vSplitGender=0,vSplitGender=1,vSplitGender=0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately does not work but i hope you get what i tried to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be easy to solve it with two buttons, but is there a way to solve it with 1 button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 15:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930140#M527537</guid>
      <dc:creator />
      <dc:date>2015-10-20T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930141#M527538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, It's possible, in the button porperties go to 'Actions' tab.&lt;/P&gt;&lt;P&gt;Press 'Add Action'--&amp;gt;External--&amp;gt;Set variable&lt;/P&gt;&lt;P&gt;In the upper text box set the varibale name:vSplitGender&lt;/P&gt;&lt;P&gt;In the lower lower text box this expression: if(vSplitGender=0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a QV avaliable so I'm talking using my memory, maybe something is called different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930141#M527538</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-20T16:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930142#M527539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok this one is pretty similar to what i tried out before. Unforunately it does not work yet as you described.&lt;/P&gt;&lt;P&gt;But anyways! You pretty much gave me the solution to the much more important question i had before! So thank you - i guess i will find a solution for the second part with a bit of trial and error! So once again, thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930142#M527539</guid>
      <dc:creator />
      <dc:date>2015-10-20T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930143#M527540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, wich part doesn't work? the variable values or the final chart?&lt;/P&gt;&lt;P&gt;For the variable value I forgot to add the intial '=':&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102676_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second part, you can consider to remove the 3rd expression (wich I think is the blue-red stacked bars) to 2 expressions, using set analysis to filter each expression by the actual dimension values. This way you have two dimensions and 2 expressions, this allow you to set the 'Stacked' style and will return two columns, one for each gender, and stacked expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930143#M527540</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-21T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation of diagram data by clicking a button?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930144#M527541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now as suggested by you. Thanks a lot for your input. I will have to try out your second suggeston (removing the third expression). Thanks for the idea!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-of-diagram-data-by-clicking-a-button/m-p/930144#M527541</guid>
      <dc:creator />
      <dc:date>2015-10-21T13:15:52Z</dc:date>
    </item>
  </channel>
</rss>

