<?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: Link two types YearMont in expr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130848#M463950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Perfect solution:)&lt;/P&gt;&lt;P&gt;But i need to calculate count in expr &amp;lt;current YearMonth-YearMonth-2&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2016 07:56:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-26T07:56:13Z</dc:date>
    <item>
      <title>Link two types YearMont in expr</title>
      <link>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130846#M463948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colleagues, in my test model i want to connect two types of YearMonth period:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First: YearMonth is loaded from Sheet1 &lt;/P&gt;&lt;P&gt;Second: YearMonth_Test is loaded from Sheet2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have link table, where every value from YearMonth Test have three values. (YearMonth_1,&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth_2,&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth_3&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;My task to make such link: Every YearMonth_test connect with current YearMonth value and two previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in expression i try to calculate count of Delivery Points using variables in filter for field YearMonth (by this filed i need to calc this expresion):&lt;/P&gt;&lt;P&gt;count({&amp;lt;YearMonth={$(v1),$(v2),$(v3)}&amp;gt;} DISTINCT DeliveryPoint).&lt;/P&gt;&lt;P&gt;But in result i get wrong values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="120" style="width: 166px; height: 121px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="98"&gt;&lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" width="265"&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;201503&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;201504&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;201505&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;201506&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My necessary result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="216" style="width: 665px; height: 216px;" width="665"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="98"&gt;YearMonth_Test&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;Result&lt;/TD&gt;&lt;TD width="64"&gt;Comments&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="20" style="border-top: none;"&gt;201503&lt;/TD&gt;&lt;TD align="right"&gt;32&lt;/TD&gt;&lt;TD&gt;count for YearMonth 201503,201502,201501&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="20" style="border-top: none;"&gt;201504&lt;/TD&gt;&lt;TD align="right"&gt;32&lt;/TD&gt;&lt;TD&gt;count for YearMonth 201504,201503,201502&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="20" style="border-top: none;"&gt;201505&lt;/TD&gt;&lt;TD align="right"&gt;34&lt;/TD&gt;&lt;TD&gt;count for YearMonth 201505,201504,201503&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="20" style="border-top: none;"&gt;201506&lt;/TD&gt;&lt;TD align="right"&gt;38&lt;/TD&gt;&lt;TD&gt;count for YearMonth 201506,201505,201504&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model and source file in attachment.&lt;/P&gt;&lt;P&gt;For any idea, will be glad.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130846#M463948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T07:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Link two types YearMont in expr</title>
      <link>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130847#M463949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125559_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Date#(YearMonth, 'YYYYMM'), 'YYYYMM') as YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeliveryPoint&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Test (2).xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Link:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT YearMonth as Report_YearMonth, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddMonths(YearMonth, -(IterNo() - 1)) as YearMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Main&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While IterNo() &amp;lt;= 3;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130847#M463949</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-24T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Link two types YearMont in expr</title>
      <link>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130848#M463950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Perfect solution:)&lt;/P&gt;&lt;P&gt;But i need to calculate count in expr &amp;lt;current YearMonth-YearMonth-2&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 07:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130848#M463950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T07:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Link two types YearMont in expr</title>
      <link>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130849#M463951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My idea is how to set YearMonth_Test filter in expr by field YearMonth with ignoring YearMonth_Test dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 08:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-two-types-YearMont-in-expr/m-p/1130849#M463951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T08:03:51Z</dc:date>
    </item>
  </channel>
</rss>

