<?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: Help needed with expression to show current financial year vs previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345483#M493715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, that doesn't seem to work either Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 04:01:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-10T04:01:10Z</dc:date>
    <item>
      <title>Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345479#M493711</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've got a graph that needs to show the current financial year vs previous, which I do using two expressions, the current year is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(Avg({$&amp;lt;data_measure={'Actual'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DateFinYear={$(=20 &amp;amp; (Num#(Mid(MaxString(DateFinYear),3,2))) &amp;amp; '-' &amp;amp; (Num#(Mid(MaxString(DateFinYear),6,2))))}&amp;gt;}data_value)/100,'###.##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the previous year is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(Avg({$&amp;lt;data_measure={'Actual'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateFinYear={$(=20 &amp;amp; (Num#(Mid(MaxString(DateFinYear),3,2))-1) &amp;amp; '-' &amp;amp; (Num#(Mid(MaxString(DateFinYear),6,2))-1))}&amp;gt;}data_value)/100,'###.##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateFinYear is in the format of 2011-12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create two text boxes containing the expressions:&lt;/P&gt;&lt;P&gt;20 &amp;amp; (Num#(Mid(MaxString(DateFinYear),3,2))) &amp;amp; '-' &amp;amp; (Num#(Mid(MaxString(DateFinYear),6,2)))&lt;/P&gt;&lt;P&gt;20 &amp;amp; (Num#(Mid(MaxString(DateFinYear),3,2))-1) &amp;amp; '-' &amp;amp; (Num#(Mid(MaxString(DateFinYear),6,2))-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They display 2011-12 and 2010-11 when I choose 2011-12 from a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I place the formula into my section access, it fails to work.&amp;nbsp; Can anyone see why this won't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 01:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345479#M493711</guid>
      <dc:creator />
      <dc:date>2012-05-10T01:14:28Z</dc:date>
    </item>
    <item>
      <title>Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345480#M493712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to guess that the use of the $ to calculate the value is causing a result that you don't see in your text value. The text value would be 2011-12, but forcing a calculation would give a result of 1999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered using variables to make your set analysis cleaner, which would also allow you to see the exact value in a text box that you are using in the expression (e.g. DateFinYear={vCurrFinYear})?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 02:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345480#M493712</guid>
      <dc:creator />
      <dc:date>2012-05-10T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345481#M493713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried moving the calculations to variables, but it didn't change anything.. The text boxes show the correct values, but the graph simply says 'No data to display'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthe confusion, another text box with the expression:&lt;/P&gt;&lt;P&gt;=IF(GetFieldSelections(DateFinYear)= vCurrentFinYear, 'Yes', 'No')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns 'Yes', when a value is selected from the list box.. So it is correctly matching the two values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 02:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345481#M493713</guid>
      <dc:creator />
      <dc:date>2012-05-10T02:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345482#M493714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using variables in set analysis, I use a format like this:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Sum({$ &amp;lt;ReportedYearNum={$(=vMaxFinancialYearNum)} &amp;gt;} PaymentAmount)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;If I have problems with strings, like financial year, I usually add another column with an integer value instead, and use that in the variable and set analysis expresion.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 03:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345482#M493714</guid>
      <dc:creator />
      <dc:date>2012-05-10T03:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345483#M493715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, that doesn't seem to work either Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 04:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345483#M493715</guid>
      <dc:creator />
      <dc:date>2012-05-10T04:01:10Z</dc:date>
    </item>
    <item>
      <title>Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345484#M493716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Matt G expression for current year &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={'$(=Year)'}&amp;gt;} Sales) and for previous year Sum({&amp;lt;Year={'$(=Year-1)'}&amp;gt;} Sales) , these two expressions will show the difference between current year selection and previous year, if you use in Bar chart. &lt;/P&gt;&lt;P&gt;hope this solution will solve your task. update if this work, if not plz share your application document. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 04:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345484#M493716</guid>
      <dc:creator>qlikviewajeet</dc:creator>
      <dc:date>2012-05-10T04:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression to show current financial year vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345485#M493717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That helped.. I didn't have the ' ' around my expression.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing DateFinYear={$(=vCurrentFinYear)} to DateFinYear={&lt;STRONG&gt;'&lt;/STRONG&gt;$(=vCurrentFinYear)&lt;STRONG&gt;'&lt;/STRONG&gt;} fixed it.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 04:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-to-show-current-financial-year-vs/m-p/345485#M493717</guid>
      <dc:creator />
      <dc:date>2012-05-10T04:23:38Z</dc:date>
    </item>
  </channel>
</rss>

