<?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: Fast swap between average and median? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387479#M560143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a few different ways to handle this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Just use a cyclic expression group - Write another expression that uses the median instead of the mean, and drag one on top of the other. In the chart, you'll see a circular arrow icon that you can click to switch between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Make the expressions conditional, so that each one shows based on the value of a variable like vAverageOrMedian. (More on this below.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) As other_peoples_shoes said, you can create entirely separate objects and use a conditional show/hide in the Layout tab based on a variable as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both (2) and (3), you can just do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_AverageOrMedian:&lt;/P&gt;&lt;P&gt;Load _AverageOrMedian Inline[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _AverageOrMedian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Median&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then create a list box with the "Always One Selected Value" box on the General tab checked. If you haven't already, be sure to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set HidePrefix = '_';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your script, that'll keep the user from seeing the Average or Median selection in the Current Selections box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 22:19:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-22T22:19:01Z</dc:date>
    <item>
      <title>Fast swap between average and median?</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387477#M560141</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;I have 4 bar graphs in a container showing ticket age by month.&amp;nbsp; Each bar graph is slightly different, but they are all using avg ticket age.&amp;nbsp; I would also like to show Median ticket age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than create 4 new tabs in the container, or create a container of containers, I'd like to be able to leave just the 4 charts, and have some kind of variable listbox or slider or something where the only two options are median and average.&amp;nbsp; Then, if the user selects median, all 4 charts will show median, and if they select average, all 4 charts will show average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume in the bar graph expression I can do something like:&lt;/P&gt;&lt;P&gt;=$(vAvgOrMedian) &amp;amp; (TicketAge)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't know how to go about allowing the user to click for vAvgOrMedian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 20:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387477#M560141</guid>
      <dc:creator />
      <dc:date>2013-04-22T20:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fast swap between average and median?</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387478#M560142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to handle this is to create the chart twice (or just once, and copy / paste.) Use the Layout tabs to set 'Conditional' to vAvgOrMedian = 'average' and vAvgOrMedian = 'median' respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a text object, select actions, go to 'external', and use 'set variable'. This will allow you to change the variable's value when the text object is clicked on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387478#M560142</guid>
      <dc:creator />
      <dc:date>2013-04-22T21:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fast swap between average and median?</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387479#M560143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a few different ways to handle this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Just use a cyclic expression group - Write another expression that uses the median instead of the mean, and drag one on top of the other. In the chart, you'll see a circular arrow icon that you can click to switch between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Make the expressions conditional, so that each one shows based on the value of a variable like vAverageOrMedian. (More on this below.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) As other_peoples_shoes said, you can create entirely separate objects and use a conditional show/hide in the Layout tab based on a variable as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both (2) and (3), you can just do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_AverageOrMedian:&lt;/P&gt;&lt;P&gt;Load _AverageOrMedian Inline[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _AverageOrMedian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Median&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then create a list box with the "Always One Selected Value" box on the General tab checked. If you haven't already, be sure to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set HidePrefix = '_';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your script, that'll keep the user from seeing the Average or Median selection in the Current Selections box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387479#M560143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T22:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fast swap between average and median?</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387480#M560144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I didn't know about the cyclic expression group feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 20:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-swap-between-average-and-median/m-p/387480#M560144</guid>
      <dc:creator />
      <dc:date>2013-04-23T20:44:12Z</dc:date>
    </item>
  </channel>
</rss>

