<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month/m-p/51421#M8494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried but i am getting as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is working fine &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If( num(right(Calendar_Month_Code,2))=1,0,Sum(ADJ_CONS_YTD_1)) and this is exactly giving me same output what i needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But i need to apply same logic in script and create a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Can you please help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 07:00:05 GMT</pubDate>
    <dc:creator>bharatkishore</dc:creator>
    <dc:date>2018-02-20T07:00:05Z</dc:date>
    <item>
      <title>Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51415#M8488</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 am having Year field, MonthYear field, Sales org and Cat fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have calculated one field called Adjcons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to show value 0 where ever the month is jan and rest of logic should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached qvw for reference. Please let me know if you need anything more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51415#M8488</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T06:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51416#M8489</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;=If( num(right(Calendar_Month_Code,2))=1,0,Sum(ADJ_CONS_YTD_1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51416#M8489</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-20T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51417#M8490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share the qvw.. bec in left join i am getting an error..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51417#M8490</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51418#M8491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the above expression in your chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51418#M8491</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-20T06:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51419#M8492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&amp;nbsp; for your reply. . But I need to do this back end because I needed that field to be converted into qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51419#M8492</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51420#M8493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few things need to be corrected. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join(T6)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;If(num(Month(Calendar_Month_Code))=1,0,YTD_IB) AS ADJ_CONS_YTD_1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Preceding load&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales_Organization,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cat,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddMonths(&lt;STRONG&gt;Date#&lt;/STRONG&gt;(Calendar_Month_Code,'&lt;STRONG&gt;YYYYMM&lt;/STRONG&gt;'), 1)&amp;nbsp;&amp;nbsp; as Calendar_Month_Code,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;YTD_IB&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident T6 ;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51420#M8493</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-20T06:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51421#M8494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried but i am getting as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is working fine &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If( num(right(Calendar_Month_Code,2))=1,0,Sum(ADJ_CONS_YTD_1)) and this is exactly giving me same output what i needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But i need to apply same logic in script and create a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Can you please help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 07:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51421#M8494</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T07:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51422#M8495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly have you got using the script I suggested? Could you post that file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 07:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51422#M8495</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-20T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51423#M8496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 07:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51423#M8496</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51424#M8497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try simply (without join):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T6:&lt;/P&gt;&lt;P&gt;LOAD Sales_Organization,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calendar_Month_Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calendar_Year_Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(ADJ_CONS_YTD) as &lt;SPAN style="font-size: 13.3333px;"&gt;ADJ_CONS_YTD,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;STRONG&gt;If(num(Month(Date#(Calendar_Month_Code,'YYYYMM')))=1,0,ADJ_CONS_YTD)&lt;/STRONG&gt;) as ADJ_CONS_YTD1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\GCS\Development\RR\5_QVD\QV_intermediate_temp10.qvd&lt;/P&gt;&lt;P&gt;(qvd) group by Sales_Organization,Cat,Country, Calendar_Month_Code, Calendar_Year_Code ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 07:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51424#M8497</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-20T07:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Month</title>
      <link>https://community.qlik.com/t5/QlikView/Month/m-p/51425#M8498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried by creating a qvd and added that field. Thanks a lot Tresesco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 08:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month/m-p/51425#M8498</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-02-20T08:24:48Z</dc:date>
    </item>
  </channel>
</rss>

