<?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: What is wrong with this Set Analysis expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334812#M492279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi it is difficult to say without the qvw to look at, but i would say it is your date that is causing you problems as the concat function will not place quotes round the date strings, try making a copy of the date field but formatting as a number and substitute this in? alternatively try putting the quotes into you $ expansion, something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=chr(39) &amp;amp; replace( Concat(distinct quarterstart(Date), ',' ) ,',', chr(39) &amp;amp; ',' &amp;amp; chr(39)&amp;nbsp; ) &amp;amp; chr(39))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 10:27:13 GMT</pubDate>
    <dc:creator>sbaldwin</dc:creator>
    <dc:date>2012-07-05T10:27:13Z</dc:date>
    <item>
      <title>What is wrong with this Set Analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334811#M492278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate if you could&amp;nbsp; check the expression below, and the set analysis part of it, and tell me what's wrong with it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Transaction Type] = {'Stocks'},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Date= {$(=concat(distinct QuarterStart(Date), ','))}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lUnits) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to evaluate the stocks level by period - either monthly, quarterly and yearly, and for that thare is the need to only consider the last month included in the time dimension chosed.&lt;/P&gt;&lt;P&gt;That is to say that if the period dimension chosed is month than the monthly stocks must be represented.&lt;/P&gt;&lt;P&gt;If the period dimension chosed is quarters than the last monthly by quarter stocks must be represented and so on.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Quarters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listed QTR members&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month for data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q1-12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q2-12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q3-12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sep-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q4-12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec-12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate all your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 21:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334811#M492278</guid>
      <dc:creator />
      <dc:date>2012-07-04T21:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this Set Analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334812#M492279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi it is difficult to say without the qvw to look at, but i would say it is your date that is causing you problems as the concat function will not place quotes round the date strings, try making a copy of the date field but formatting as a number and substitute this in? alternatively try putting the quotes into you $ expansion, something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=chr(39) &amp;amp; replace( Concat(distinct quarterstart(Date), ',' ) ,',', chr(39) &amp;amp; ',' &amp;amp; chr(39)&amp;nbsp; ) &amp;amp; chr(39))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 10:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334812#M492279</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2012-07-05T10:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this Set Analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334813#M492280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sbaldwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to abandon this strategy once it leads to loose some data in the tail areas of the time dimensions - mainly when the quarters are not complete which happens when the available periods are the month 2 or 3 of a quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, please find attached the qvw with a demo issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All your help is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 01:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-this-Set-Analysis-expression/m-p/334813#M492280</guid>
      <dc:creator />
      <dc:date>2012-07-06T01:34:26Z</dc:date>
    </item>
  </channel>
</rss>

