<?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 calculated value in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculated-value-in-set-analysis/m-p/250431#M95091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax for variables in set analysis is a bit different. You will need $(#variable) for variables and $(#=expression) for expression. So in your case use either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={$(=round(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;MEASURES_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AVG DAILY VOL'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FORECAST_VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; )))}&amp;gt;} RESOURCING)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={$(=$(#varADV))}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;RESOURCING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 18:46:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-04T18:46:51Z</dc:date>
    <item>
      <title>calculated value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-value-in-set-analysis/m-p/250430#M95090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have the following expression.&amp;nbsp; Essentially, I am trying to limit the records to one record, based on the average daily volume.&amp;nbsp; The first example shows one department that has an average daily volume of 53.&amp;nbsp; however, this can change from month to month, or department to department . &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'53)'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RESOURCING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;However, this can change from month to month, or department to department .&amp;nbsp; This doesnt work. However, the calculation does return the correct average daily volume.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={round(&lt;/SPAN&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;MEASURES_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AVG DAILY VOL'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FORECAST_VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ))}&amp;gt;} RESOURCING) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;So I put the calculation above into a variable called varADV and embedded that in the expression.&amp;nbsp; This doesnt work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'$(varADV)'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RESOURCING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; What am I missing here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 18:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-value-in-set-analysis/m-p/250430#M95090</guid>
      <dc:creator />
      <dc:date>2011-08-04T18:21:02Z</dc:date>
    </item>
    <item>
      <title>calculated value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-value-in-set-analysis/m-p/250431#M95091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax for variables in set analysis is a bit different. You will need $(#variable) for variables and $(#=expression) for expression. So in your case use either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={$(=round(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;MEASURES_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AVG DAILY VOL'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;FORECAST_VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; )))}&amp;gt;} RESOURCING)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;AVG_DAILY_VOL_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={$(=$(#varADV))}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;RESOURCING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 18:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-value-in-set-analysis/m-p/250431#M95091</guid>
      <dc:creator />
      <dc:date>2011-08-04T18:46:51Z</dc:date>
    </item>
  </channel>
</rss>

