<?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 and Year from Date Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751786#M1050705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand. Can you explain how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 09:10:12 GMT</pubDate>
    <dc:creator>djsampat</dc:creator>
    <dc:date>2014-11-03T09:10:12Z</dc:date>
    <item>
      <title>Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751772#M1050691</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 need some help. I have been trying to extract the Year and Month to match our Financial Year and Period with the script below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL it works but in Qlikview it seems to run once, instead of for each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make the Financial Year start from 1st July of each year being equal to the first period(month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Edited: From the responses, i have added a PeriodYear field and added as a list box, but I would still need to somehow automate it to be selected. eg. if i select Year 2015 and Period 5 (Being November 2014), then it should link with 052015 in the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT T1.NUM_0,T1.SIDLIN_0,T2.ACCDAT_0,MONTH(T2.ACCDAT_0) as [Month], YEAR(T2.ACCDAT_0) as [Year],&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then MONTH(T2.ACCDAT_0)-6 else MONTH(T2.ACCDAT_0)+6 end as Period,&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then YEAR(T2.ACCDAT_0)+1 else YEAR(T2.ACCDAT_0) end as FIY,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;"Period"&amp;amp;"FIY" as PerYr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM SINVOICED T1, SINVOICE T2&lt;/P&gt;&lt;P&gt;WHERE T1.NUM_0 = T2.NUM_0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70336" alt="MonthYearSQL.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70336_MonthYearSQL.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70335" alt="MonthYear.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70335_MonthYear.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751772#M1050691</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751773#M1050692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, give 2 input box to capture period, put this 2 values in variables then compare the date between the given values in varibles in expression or if u take dimention as date with dimention.(claculated dimension). by this u can provide user to select the required dynamic periods for selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751773#M1050692</guid>
      <dc:creator>vinay_hg</dc:creator>
      <dc:date>2014-11-03T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751774#M1050693</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;try this&lt;/P&gt;&lt;P&gt;MonthName(Yourdatefield) as MonthYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&amp;nbsp; if that worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751774#M1050693</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-03T08:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751775#M1050694</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;After getting table into the Qlikview you can concatenate this two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Month] &amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Year] as [Month Year]&lt;/SPAN&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;"&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;"&gt;From Location;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;And if format problem then convert to its appropriate date format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Anand&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751775#M1050694</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-03T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751776#M1050695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post QV script you tried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751776#M1050695</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-03T08:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751777#M1050696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay, can you give more detail or modify my SQL query to show what you are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Sales Detail screenshot, I am expecting to select only Year and Period and require all the Sales Detail for that period. I am not able to add more selections, as it would affect other Tabs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751777#M1050696</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751778#M1050697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;View below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InvoiceLines:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CPY_0" AS [Company],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "NUM_0" as SalesInvNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "SIDLIN_0" as InvLine,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("NETPRI_0"*"QTY_0")*-1, "NETPRI_0"*"QTY_0")) as Sell,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("CPRPRI_0"*"QTY_0")*-1, "CPRPRI_0"*"QTY_0")) as Cost,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "GROPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "NETPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CPRPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ITMREF_0" as Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ITMDES1_0" as ProdDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("QTY_0",0.01) as QTY_0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("PFM_0",0.01) as PFM_0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Forecast,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round(applymap('SOQTY',"SOHNUM_0"&amp;amp;"SOPLIN_0", QTY_0),0.01) as OrderedQty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Freight,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACCDAT_0" as InvAccDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Month" as InvMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year" as InvYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Period",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FIY"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;SELECT T1.*, T2.INVTYP_0, T2.ACCDAT_0, MONTH(T2.ACCDAT_0) as [Month], YEAR(T2.ACCDAT_0) as [Year],&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then MONTH(T2.ACCDAT_0)-6 else MONTH(T2.ACCDAT_0)+6 end as Period,&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then YEAR(T2.ACCDAT_0)+1 else YEAR(T2.ACCDAT_0) end as FIY&lt;/P&gt;&lt;P&gt;FROM x3live.GBILIVE.SINVOICED T1, x3live.GBILIVE.SINVOICE T2&lt;/P&gt;&lt;P&gt;WHERE T1.NUM_0 = T2.NUM_0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751778#M1050697</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751779#M1050698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;"In SQL it works but in Qlikview it seems to run once, instead of for each line."&lt;/EM&gt; -- Can you explain your issue with example and expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751779#M1050698</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-03T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751780#M1050699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashfaq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It crashed my qvw with the following error and Out of Object Memory after 5 mins of being frozen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751780#M1050699</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751781#M1050700</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;You need to remove Double quotes for the below two lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; "Month" as InvMonth,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year" as InvYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InvoiceLines:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CPY_0" AS [Company],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "NUM_0" as SalesInvNum,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "SIDLIN_0" as InvLine,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("NETPRI_0"*"QTY_0")*-1, "NETPRI_0"*"QTY_0")) as Sell,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("CPRPRI_0"*"QTY_0")*-1, "CPRPRI_0"*"QTY_0")) as Cost,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "GROPRI_0",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "NETPRI_0",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "CPRPRI_0",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "ITMREF_0" as Product,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ITMDES1_0" as ProdDesc,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("QTY_0",0.01) as QTY_0,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("PFM_0",0.01) as PFM_0,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Forecast,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round(applymap('SOQTY',"SOHNUM_0"&amp;amp;"SOPLIN_0", QTY_0),0.01) as OrderedQty,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Freight,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ACCDAT_0" as InvAccDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Month]&lt;/SPAN&gt; as InvMonth,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Year]&lt;/SPAN&gt; as InvYear,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Period",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FIY"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT T1.*, T2.INVTYP_0, T2.ACCDAT_0, MONTH(T2.ACCDAT_0) as [Month], YEAR(T2.ACCDAT_0) as [Year],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then MONTH(T2.ACCDAT_0)-6 else MONTH(T2.ACCDAT_0)+6 end as Period,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then YEAR(T2.ACCDAT_0)+1 else YEAR(T2.ACCDAT_0) end as FIY&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM x3live.GBILIVE.SINVOICED T1, x3live.GBILIVE.SINVOICE T2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE T1.NUM_0 = T2.NUM_0&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;REgards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751781#M1050700</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-03T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751782#M1050701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It crashed my qvw with the following error and Out of Object Memory after 5 mins of being frozen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751782#M1050701</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751783#M1050702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Same Query in SQL and Qv are having different results, basically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751783#M1050702</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751784#M1050703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those are my checks. I will remove the fields once I have confirmed that the Period and FIY are correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751784#M1050703</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T08:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751785#M1050704</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;From the Qvd file you have to do this not directly to the SQL query because it created problem while running may be due to field references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751785#M1050704</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-03T09:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751786#M1050705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand. Can you explain how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751786#M1050705</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-03T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Month and Year from Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751787#M1050706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InvoiceLines:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CPY_0" AS [Company],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SALFCY_0" as [Site],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "NUM_0" as SalesInvNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "SIDLIN_0" as InvLine,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("NETPRI_0"*"QTY_0")*-1, "NETPRI_0"*"QTY_0")) as Sell,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if("QTY_0" = 0, IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, "AMTLIN_0"*-1,"AMTLIN_0"),IF("INVTYP_0" = 2 OR "INVTYP_0" = 4, ("CPRPRI_0"*"QTY_0")*-1, "CPRPRI_0"*"QTY_0")) as Cost,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "GROPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "NETPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CPRPRI_0",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ITMREF_0" as Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ITMDES1_0" as ProdDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("QTY_0",0.01) as QTY_0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round("PFM_0",0.01) as PFM_0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Forecast,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round(applymap('SOQTY',"SOHNUM_0"&amp;amp;"SOPLIN_0", QTY_0),0.01) as OrderedQty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Freight,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date("ACCDAT_0", 'DD/MM/YYYY') as AccDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Month" as InvMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year" as InvYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Period",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FIY" as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Period"&amp;amp;"FIY" as PerYr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;SELECT T1.*, T2.INVTYP_0, T2.ACCDAT_0, MONTH(T2.ACCDAT_0) as [Month], YEAR(T2.ACCDAT_0) as [Year],&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then MONTH(T2.ACCDAT_0)-6 else MONTH(T2.ACCDAT_0)+6 end as Period,&lt;/P&gt;&lt;P&gt;case when MONTH(T2.ACCDAT_0) &amp;gt; 6 then YEAR(T2.ACCDAT_0)+1 else YEAR(T2.ACCDAT_0) end as FIY&lt;/P&gt;&lt;P&gt;FROM x3live.GBILIVE.SINVOICED T1, x3live.GBILIVE.SINVOICE T2&lt;/P&gt;&lt;P&gt;WHERE T1.NUM_0 = T2.NUM_0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 02:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-and-Year-from-Date-Field/m-p/751787#M1050706</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2014-11-04T02:24:42Z</dc:date>
    </item>
  </channel>
</rss>

