<?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 using variable set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37445#M6320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qvd with a field that contains a timestamp in numeric notation (for example 43251,501435185)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading this qvd I find the highest value with : Set maxvalue=max(fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this variable in an expression like :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum( {&amp;lt;fieldname={"=$(maxvalue)"}&amp;gt;} counted_employees)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The result is the sum of all values and not only of the maxvalue.&lt;/P&gt;&lt;P&gt;When I use the expression :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={'&lt;SPAN style="font-size: 13.3333px;"&gt;43251,501435185&lt;/SPAN&gt;'}&amp;gt;} counted_employees) I get a correct result.&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;&lt;SPAN style="font-size: 13.3333px;"&gt;When I use the expression : &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={$(maxvalue)}&amp;gt;} counted_employees) i get an error &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Error in set modifier ad hoc element list:&lt;/P&gt;&lt;P&gt;',' or ')' expected&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The value &lt;SPAN style="font-size: 13.3333px;"&gt;43251,501435185 was found with the expression =$(maxvalue) in a textbox&lt;/SPAN&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I don't no what is wrong with&amp;nbsp; my set analysis expression&lt;/SPAN&gt;&lt;BR /&gt;&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 11:50:00 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2018-05-31T11:50:00Z</dc:date>
    <item>
      <title>using variable set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37445#M6320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qvd with a field that contains a timestamp in numeric notation (for example 43251,501435185)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading this qvd I find the highest value with : Set maxvalue=max(fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this variable in an expression like :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum( {&amp;lt;fieldname={"=$(maxvalue)"}&amp;gt;} counted_employees)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The result is the sum of all values and not only of the maxvalue.&lt;/P&gt;&lt;P&gt;When I use the expression :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={'&lt;SPAN style="font-size: 13.3333px;"&gt;43251,501435185&lt;/SPAN&gt;'}&amp;gt;} counted_employees) I get a correct result.&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;&lt;SPAN style="font-size: 13.3333px;"&gt;When I use the expression : &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={$(maxvalue)}&amp;gt;} counted_employees) i get an error &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Error in set modifier ad hoc element list:&lt;/P&gt;&lt;P&gt;',' or ')' expected&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The value &lt;SPAN style="font-size: 13.3333px;"&gt;43251,501435185 was found with the expression =$(maxvalue) in a textbox&lt;/SPAN&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I don't no what is wrong with&amp;nbsp; my set analysis expression&lt;/SPAN&gt;&lt;BR /&gt;&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 11:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37445#M6320</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-05-31T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: using variable set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37446#M6321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first attempt didn't work because your variable returned a value which is not 0 and therefore it is automatically TRUE and this for all records. By your second trial the return-value contained a comma which is here not treated as a decimal-delimiter else as a parameter-delimiter within the set analysis. But the following should be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={&lt;STRONG&gt;'&lt;/STRONG&gt;$(maxvalue)&lt;STRONG&gt;'&lt;/STRONG&gt;}&amp;gt;} counted_employees)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because the single-quotes convert it into a string-value like in your manually approach from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 12:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37446#M6321</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-31T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: using variable set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37447#M6322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use single_quotes the result = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My settings are :&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 12:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37447#M6322</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-05-31T12:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: using variable set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37448#M6323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;fieldname={"$(=$(maxvalue))"}&amp;gt;} counted_employees)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 12:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37448#M6323</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: using variable set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37449#M6324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try: &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;fieldname={&lt;STRONG&gt;'&lt;/STRONG&gt;$(&lt;STRONG&gt;=&lt;/STRONG&gt;maxvalue)&lt;STRONG&gt;'&lt;/STRONG&gt;}&amp;gt;} counted_employees)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 12:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-set-analysis/m-p/37449#M6324</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-31T12:35:56Z</dc:date>
    </item>
  </channel>
</rss>

