<?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: Month YTD Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27667#M4628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/302894"&gt;Calculate YTD for Month using Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 09:04:10 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-30T09:04:10Z</dc:date>
    <item>
      <title>Month YTD Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27665#M4626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have calculated YTD for month and stored in variable called $(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Month_YTD)&lt;/STRONG&gt; using below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Concat(distinct {1&amp;lt;fiscal_year={"$(=$(year))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;accounting_period={"$(='&amp;gt;=' &amp;amp; 1 &amp;amp; '&amp;lt;=' &amp;amp; $(v_accounting_period))"}&amp;gt;}Date,',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where $(year) is as&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; concat(distinct {$&amp;lt;Date={"$(=$(prev_month4))"}&amp;gt;}fiscal_year,',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and $(v_accounting_period) is as&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;concat(distinct {$&amp;lt;Date={"$(=$(prev_month4))"}&amp;gt;} accounting_period,',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The value of this Month_YTD variable is coming out to be 30-Nov-2017,31-Dec-2017 which is correct.&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But when i m using this variable $(Month_YTD) in the below expression i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count({$&amp;lt;Date={"$(=$(Month_YTD))"}&amp;gt;} distinct emp_id) ,&lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;i am not getting the answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Although when i m manually feeding the dates in place of this Variable i.e&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;count({$&amp;lt;Date={'30-Nov-2017','31-Dec-2017'}&amp;gt;} distinct emp_id)&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;,then i m getting the answer .&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there something wrong with this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kindly help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 05:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27665#M4626</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-30T05:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Month YTD Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27666#M4627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like your dates work when they are used as strings, but not as values. In your example it works when you write the dates within quotation marks, but I'm guessing your variable doesn't containg quotation marks right?&lt;/P&gt;&lt;P&gt;I think you can check this and ensure that the variable adds the quotation marks around the dates and it might just work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 07:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27666#M4627</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-05-30T07:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Month YTD Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27667#M4628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/302894"&gt;Calculate YTD for Month using Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 09:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-YTD-Issue/m-p/27667#M4628</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-30T09:04:10Z</dc:date>
    </item>
  </channel>
</rss>

