<?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: Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514888#M601541</link>
    <description>taking a look at your expression below, maybe something is wrong in it.&lt;BR /&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=date(PlannedGoodsMov))"},NotDeliveredYet={0},YearMonth={"&amp;gt;$(=date(ActualGoodsMov))"}&amp;gt;}YCOUNT)&lt;BR /&gt;&lt;BR /&gt;Why do you have field name "YearMonth" twice ?</description>
    <pubDate>Fri, 30 Nov 2018 13:52:44 GMT</pubDate>
    <dc:creator>agigliotti</dc:creator>
    <dc:date>2018-11-30T13:52:44Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514713#M601537</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a Filter pane in my dashboard called "YearMonth". I created this field in the Master calendar as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Date(monthstart(TempDate), 'YYYYMM') As YearMonth&lt;/P&gt;&lt;P&gt;I use the first formula and it works, however the second formula does not work.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;sum({$&amp;lt;YearMonth={"&amp;lt;201405"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;sum({$&amp;lt;YearMonth={"&amp;lt;(=date(YearMonth))"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;in the second one I wanted to sum the field YCOUNT for all periods lower than the selected one in the Filter pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what is wrong with formula structure?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514713#M601537</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2024-11-16T05:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514722#M601538</link>
      <description>&lt;P&gt;maybe this:&lt;BR /&gt;sum( {&amp;lt; YearMonth = {"&amp;lt;$(=Max(YearMonth))"} &amp;gt;} YCOUNT )&lt;BR /&gt;I hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514722#M601538</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2018-11-30T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514827#M601539</link>
      <description>&lt;P&gt;Or this&lt;/P&gt;&lt;PRE&gt; Sum({$&amp;lt;YearMonth = {"&amp;lt;$(=Date(Max(YearMonth), 'YYYYMM'))"}&amp;gt;} YCOUNT)&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 12:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514827#M601539</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-30T12:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514828#M601540</link>
      <description>&lt;P&gt;Hi Agigliotti,&lt;/P&gt;&lt;P&gt;It works,&amp;nbsp;however I need to include more conditions and I am struggling with it.&amp;nbsp; The image below shows you what I want to calculate. I need to calculate the tree components of the measure called "Total not on Time".&lt;/P&gt;&lt;P&gt;So far I was able to calculate the first component using the following formula:&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={$(=YearMonth)},NotDeliveredYet={0}&amp;gt;}YCOUNT)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I tried to calculate the second and third component, the following formula does not work:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=Max(YearMonth))"}, NotDeliveredYet={1}&amp;gt;}YCOUNT ) // this part works&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=date(PlannedGoodsMov))"},NotDeliveredYet={0},YearMonth={"&amp;gt;$(=date(ActualGoodsMov))"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="not on time example.PNG" style="width: 970px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1358iFEE0C4E091998EF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="not on time example.PNG" alt="not on time example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 12:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514828#M601540</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-30T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514888#M601541</link>
      <description>taking a look at your expression below, maybe something is wrong in it.&lt;BR /&gt;Sum({&amp;lt;DOT_STATUS={'Too Late'},YearMonth={"&amp;lt;$(=date(PlannedGoodsMov))"},NotDeliveredYet={0},YearMonth={"&amp;gt;$(=date(ActualGoodsMov))"}&amp;gt;}YCOUNT)&lt;BR /&gt;&lt;BR /&gt;Why do you have field name "YearMonth" twice ?</description>
      <pubDate>Fri, 30 Nov 2018 13:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514888#M601541</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2018-11-30T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514910#M601542</link>
      <description>&lt;P&gt;I do not see the mistake &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;YearMonth correspond to the Current Selected Period by the user in the Dashboard.&lt;/P&gt;&lt;P&gt;Perhaps to clarify it is important to mention that the YearMonth filed was built based on PlannedGoodsMov column.&lt;/P&gt;&lt;P&gt;What I am trying to calculate in this formula is all delivery items which has the flag "Too Late" and the Current selected period (i.e. the YearMonth variable) is lower than the PlannedGoodsMov and higher than the ActualGoodsMov.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image below shows you a clear example: The period selected is 201606 and then the items was supposed to be delivered on 4/28/2016 (which is lower that the current selected period) but was delivered on 7/1/2016 (which is higher than the current selected period).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="not on time example2.PNG" style="width: 946px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1372iE2C524D7EFB9A13D/image-size/large?v=v2&amp;amp;px=999" role="button" title="not on time example2.PNG" alt="not on time example2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1514910#M601542</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-11-30T14:07:15Z</dc:date>
    </item>
  </channel>
</rss>

