<?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: Action buttons on two variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523398#M481035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached file, hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 06:10:57 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-10-25T06:10:57Z</dc:date>
    <item>
      <title>Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523394#M481031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm facing this problem: i've a bar graph where i'm showing&lt;/P&gt;&lt;P&gt;sum(sales)&lt;/P&gt;&lt;P&gt;count(customers)&lt;/P&gt;&lt;P&gt;sum(goodsdelivered)&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;My customer is asking me to have an action button for switching from sum to avg. No problem i've created a variable &lt;EM&gt;vAggr&lt;/EM&gt; to do it&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(vAggr='sum', sum(sales), if(vAggr='avg', avg(sales))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then he asked me to cycle on time dimension not with a classic QV symbol but he wants further buttons to set Year, Month,ecc&lt;/P&gt;&lt;P&gt;I tried with a further variable &lt;EM&gt;vTime&lt;/EM&gt; but when i try to use it, it stops calculating avg. I use this expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(vAggr='sum', sum(sales), if(vAggr='avg', sum(sales)/count (distinct $(vTime)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Where is the problem, i can't see it. Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 04:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523394#M481031</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2013-10-25T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523395#M481032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have in the variable $(vTime)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523395#M481032</guid>
      <dc:creator />
      <dc:date>2013-10-25T05:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523396#M481033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume vTime like Year, Month based on button selection it will change the Year or Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the Conditional option in expression use like this &lt;/P&gt;&lt;P&gt;vTime = 'Year'&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(vAggr='sum', sum(sales), if(vAggr='avg', sum(sales) / Count (distinct Year)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vTime = 'Month'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(vAggr='sum', sum(sales), if(vAggr='avg', sum(sales) / Count (distinct Month)))&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope its help.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Otherwise provide the sample app for that&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523396#M481033</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-10-25T05:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523397#M481034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Amuthabharati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a file for the same button action, go for it ,&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523397#M481034</guid>
      <dc:creator />
      <dc:date>2013-10-25T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523398#M481035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached file, hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523398#M481035</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T06:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523399#M481036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've Year, Month, Week, Fiscal Quarter, Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523399#M481036</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2013-10-25T06:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523400#M481037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, correct for sum or avg but also to cycle on x axis dimension i need furrther buttons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523400#M481037</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2013-10-25T06:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Action buttons on two variables</title>
      <link>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523401#M481038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA file for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Action-buttons-on-two-variables/m-p/523401#M481038</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T06:57:49Z</dc:date>
    </item>
  </channel>
</rss>

