<?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: Quick set analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874480#M996310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers Peter for looking at this,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 14:56:06 GMT</pubDate>
    <dc:creator>samuel_brierley</dc:creator>
    <dc:date>2015-06-22T14:56:06Z</dc:date>
    <item>
      <title>Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874474#M996304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;below is a formula im using to average the NOx as you can see but im having an issue witht eh set analysis, where I say {&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=num(avg([Speed(Lane 1)]),'#.')), its calculating the average of the whole selected range and not by the dimension, e.g&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Speed (Lane 1)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;$&amp;lt;[Average speed (km/h)] = {$(=num(avg([Speed(Lane 1)]),'#.'))}&amp;gt;}&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;What I Want&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00:01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00:02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00:03&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;60&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Average speed (km/h)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=num(avg([Speed(Lane 1)]),'#.'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NOx EF (g/km)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I want the formula to do is avg the NOx where the Speed (Lane 1) = Average Speed (km/h) (I cant rename the fields unfortunately)&lt;/P&gt;&lt;P&gt;one possible answer is to add the Time dimension into the formula in the same way I have done with the Speed Field but I couldn't get that to work.&lt;/P&gt;&lt;P&gt;hopefully that is enough info to get you started, I imagine its quite a simple change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874474#M996304</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-06-22T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874475#M996305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis works before the chart is recalculated. You cannot use it to perform row-by-row evaluations/calculations.&lt;/P&gt;&lt;P&gt;aggr() will be your friend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874475#M996305</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-22T14:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874476#M996306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis filters are made &lt;STRONG&gt;before&lt;/STRONG&gt; calculation of each row.&lt;/P&gt;&lt;P&gt;It´s the way it works by design&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874476#M996306</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-06-22T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874477#M996307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not a just a simple change. The dollar expansion and the Set Analysis selection is made before the chart is calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis is never evaluated for each row. You can only use expressions that can result in selections &lt;EM style="text-decoration: underline;"&gt;before&lt;/EM&gt; the chart is evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I am not quite sure I understand what you want to achieve... In the first row of your chart, the "Speed (Lane 1)" is 50. But then you also a field "Average speed (km/h)". How does this relate to the first field? And how could it ever be different from 50 on the first row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874477#M996307</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-22T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874478#M996308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What im trying to achieve is simply avg the NOx where the &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Average speed (km/h)] is equal to the speed In lane 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Average speed (km/h)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=num(avg([Speed(Lane 1)]),'#.'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NOx EF (g/km)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874478#M996308</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-06-22T14:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874479#M996309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post a file with example source data? That would make it a lot easier to find a solution. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874479#M996309</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-22T14:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874480#M996310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers Peter for looking at this,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874480#M996310</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-06-22T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874481#M996311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that you want to calculate the avg NOx using some condition, but I don't understand how [Speed (Lane 1)] relates to [Average speed (km/h)]. Especially since you use [Speed (Lane 1)] as dimension in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, posting some data, as Peter suggests, is probably a good idea&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 14:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874481#M996311</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-22T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Quick set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874482#M996312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are two tables, one contains vehicle information inc speed(lane 1,2,3) and vehicle type. the other table contains vehicle type, speed and NOx (the field I want to return).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 2 tables are linked by the vehicle type so I should be able to return the NOx for each vehicle type at the speed recorded in the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was my assumption anyway but its proving more difficult than that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 15:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-set-analysis-question/m-p/874482#M996312</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2015-06-22T15:03:59Z</dc:date>
    </item>
  </channel>
</rss>

