<?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 Fiscal year issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325783#M119954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks! I have used some other way to do this calculation. Your input was helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 11:21:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-14T11:21:34Z</dc:date>
    <item>
      <title>Fiscal year issue</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325779#M119950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a report based on FY(Oct to Sep). I need to sum all values with date between Oct 2010 - Sept 2011. Again, this report should be dynamic to take next FY as Oct 2011 - Sept 12.&lt;/P&gt;&lt;P&gt;I have a date field called CloseDate which is used to create ClosedDateMade and is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPP2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;MakeDate(mid(ClosedDate,7,4),SubField(ClosedDate,'/',1),SubField(ClosedDate,'/',2)) as ClosedDateMade,&lt;/P&gt;&lt;P&gt;YearName ( MakeDate(mid(ClosedDate,7,4),SubField(ClosedDate,'/',1),SubField(ClosedDate,'/',2)), 0, 10 ) as FiscalYRNAME,// to implement FY OCT-SEP&lt;/P&gt;&lt;P&gt;Amount*Rate as AmtCon&lt;/P&gt;&lt;P&gt;resident OPPORTUNITYFIRST;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O1:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Date(Today()) as TodayDate,&lt;/P&gt;&lt;P&gt;sum(if(FiscalYRNAME = YearName(today(),0,10),AmtCon))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as v1 Resident OPP2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I remove sum(), it executes correctly but implementing sum() just hangs the script without any error in log!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325779#M119950</guid>
      <dc:creator />
      <dc:date>2011-10-10T18:20:28Z</dc:date>
    </item>
    <item>
      <title>Fiscal year issue</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325780#M119951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you need a group by clause added to your second load to be able to use an aggregation function (i.e. sum),&lt;/P&gt;&lt;P&gt;maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date(Today()) as TodayDate,&lt;/P&gt;&lt;P&gt;sum(if(FiscalYRNAME = YearName(today(),0,10),AmtCon)) as v1&lt;/P&gt;&lt;P&gt;resident OPP2 &lt;STRONG&gt;group by FiscalYRNAME&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably use soemthing like&lt;/P&gt;&lt;P&gt;O1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FiscalYRNAME,&lt;/P&gt;&lt;P&gt;sum( AmtCon) as FYSum&lt;/P&gt;&lt;P&gt;resident OPP2 group by FiscalYRNAME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to sum all Fiscal years, not only todays FY, giving a table with all FY and their sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know why it hangs, it should give you an appropriate error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325780#M119951</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-10T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Fiscal year issue</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325781#M119952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for response Stefan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried group by but no luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using following code and it is working fine without group by:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//O1:&lt;/P&gt;&lt;P&gt;//Load &lt;/P&gt;&lt;P&gt;//Date(Today()) as TodayDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//sum(if(FiscalYear= Year(today()),if(wildmatch(StageName,'7*')=1, AmtCon))) as v1 Resident OPP2; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I need to calculate FY from ClosedDate field and I am using YearName for this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 01:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325781#M119952</guid>
      <dc:creator />
      <dc:date>2011-10-11T01:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year issue</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325782#M119953</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;what problems do you had with using group by?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached, it seems to work just fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 09:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325782#M119953</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-11T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Fiscal year issue</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325783#M119954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks! I have used some other way to do this calculation. Your input was helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-year-issue/m-p/325783#M119954</guid>
      <dc:creator />
      <dc:date>2011-10-14T11:21:34Z</dc:date>
    </item>
  </channel>
</rss>

