<?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 Variable field calculation in chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937340#M323494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forgive my potential ignorance as I found similar posts but still have been unable to resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of charts that give certain stats around service desk calls - for example, number calls per year/team/department etc (done via count of RequestIDs). But there are also charts for the time taken for these calls - for example total time spent per year/team/department (calculated via sum of WorkLogs, a request may have multiple WorkLogs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than repeat the same charts with either calculation I would like a variable and associated button(s) that gives the option for either calculation - for example click 'Time Spent' and see calcs for total time spent per team, or click 'Volume' for number number of calls per team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has an idea then please share - would REALLY appreciate it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 14:12:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-02T14:12:20Z</dc:date>
    <item>
      <title>Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937340#M323494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forgive my potential ignorance as I found similar posts but still have been unable to resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of charts that give certain stats around service desk calls - for example, number calls per year/team/department etc (done via count of RequestIDs). But there are also charts for the time taken for these calls - for example total time spent per year/team/department (calculated via sum of WorkLogs, a request may have multiple WorkLogs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than repeat the same charts with either calculation I would like a variable and associated button(s) that gives the option for either calculation - for example click 'Time Spent' and see calcs for total time spent per team, or click 'Volume' for number number of calls per team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has an idea then please share - would REALLY appreciate it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937340#M323494</guid>
      <dc:creator />
      <dc:date>2015-12-02T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937341#M323495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can maybe use conditional expressions to show the one aggregate or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the demo in the 'What's new in QV11.qvw' or search the forum for conditional expressions on how to setup this kind of charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 20:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937341#M323495</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-02T20:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937342#M323496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Use expressions groups:&lt;/P&gt;&lt;P&gt;------ you need to have the two expressions in one chart, and then in expression tab, select the second expression and then select "group", apply and a button appears to change/select the expression you want to see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- as you suggest, create variable and buttons:&lt;/P&gt;&lt;P&gt;----- 1: you create a variable : settings-&amp;gt; variable overview -&amp;gt; create (name as example vViewExp1) / no value&lt;/P&gt;&lt;P&gt;------ 2 : you create 2 text objects with in "action" tab:&lt;/P&gt;&lt;P&gt;add-&amp;gt;external-&amp;gt;set variable-&amp;gt; variable: vViewExp1 and value : 0 for the first object and 1 for the second&lt;/P&gt;&lt;P&gt;------ 3: in your chart which has the two expressions, in expression tab, you see a condition input (conditional checkbox):&lt;/P&gt;&lt;P&gt;for the first expression write : &lt;SPAN style="font-size: 13.3333px;"&gt;vViewExp1=0 and the second &lt;SPAN style="font-size: 13.3333px;"&gt;vViewExp1 =1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 22:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937342#M323496</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-12-02T22:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937343#M323497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check here &lt;A href="https://community.qlik.com/thread/76848"&gt;Dynamically Change Expressions&lt;/A&gt; and find the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937343#M323497</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2015-12-03T02:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937344#M323498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - had looked into before posting but couldn't find a matching solution. The search goes on &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 12:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937344#M323498</guid>
      <dc:creator />
      <dc:date>2015-12-03T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937345#M323499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for passing on. Have now tried the metrics/pickmetrics method but having issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the % prefix the island table loads and is visible using Ctrl-T and I can see it clearly with preview data. However, when I try and select it as a field in a list box, it does not appear as an option, like it doesn't exist - neither %&lt;SPAN style="font-size: 13.3333px;"&gt;metrics %pickmetrics are visible, despite not even getting to the hide % stage. So I also didn't add the expression to the chart because there is no point if I can't select it. Very strange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I don't use the %prefix the island table loads, is visible using Ctrl-T and can be selected as in a filter list. I use the expression which then allows me to use the filter to change the chart expression as expected but then the selection shows in Current Selections which will confuse users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this method can't be used because it still only caters for an expression that varies only by field to be calculated and doesn't manipulate the calculation method - what I need is the flip between SUM(x) and COUNT(y)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937345#M323499</guid>
      <dc:creator />
      <dc:date>2015-12-03T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937346#M323500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get around the % issue, must have been my syntax or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also was able to workaround the SUM vs COUNT in a very simple way. I added a "1 AS RequestCount" on the load so that I could sum the 1's to get the count - works like a charm!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937346#M323500</guid>
      <dc:creator />
      <dc:date>2015-12-03T16:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937347#M323501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow - that's such a simple way of doing things and works a treat! Thanks for passing on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't use the first option because I needed to apply to multiple charts, however the second option works perfectly as it allows for using button control for multiple charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As both options work (conditional expression in chart and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;metrics/pickmetrics method suggested by @shankarace), I will need to evaluate which works best with other scenarios &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937347#M323501</guid>
      <dc:creator />
      <dc:date>2015-12-03T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937348#M323502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shankarece is the best option for big apps and maintenance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937348#M323502</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-12-03T17:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable field calculation in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937349#M323503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually going to use a combination of both!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;metrics/pickmetrics method will be used to enable a toggle between single expression variants - e.g. SUM(WorkLogHours)/SUM(RequestID).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I would also like to give the option make them relative e.g. as a percentage. So I will have a second expression with the same formula but expressed as %, and using the conditional expression in chart method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This provides four buttons - Total Worklog Hours, &lt;SPAN style="font-size: 13.3333px;"&gt;Total Worklog Hours as %, Total Requests, Total Requests as %&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 10:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-field-calculation-in-chart-expression/m-p/937349#M323503</guid>
      <dc:creator />
      <dc:date>2015-12-04T10:02:50Z</dc:date>
    </item>
  </channel>
</rss>

