<?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 Max Year and Current Quarter syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1105818#M366236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my data source from Oracle table to an excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my formulas don't work. I assume it is because the numbers are being read as strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart that shows the expenses to date in the current quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can now do each of them separately but when I try to join them in one calculation to show the max year and current quarter I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula for the Quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( { $&amp;lt; Quarter_number = {'$(vCurrentQuarterNumber)'} &amp;gt;}&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula for the Max Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;[Posting Fiscal year]={$(=Max([Posting Fiscal year]))}&amp;gt;}&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put it back together I get an error. &lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;[Posting Fiscal year]={$(=Max([Posting Fiscal year]))},{ $&amp;lt; Quarter_number = {'$(vCurrentQuarterNumber)'} &amp;gt;}&amp;nbsp;&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I am just missing a coma or something that can be easily adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. I am on a tight deadline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 00:38:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-07T00:38:30Z</dc:date>
    <item>
      <title>Max Year and Current Quarter syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1105818#M366236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my data source from Oracle table to an excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my formulas don't work. I assume it is because the numbers are being read as strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart that shows the expenses to date in the current quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can now do each of them separately but when I try to join them in one calculation to show the max year and current quarter I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula for the Quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( { $&amp;lt; Quarter_number = {'$(vCurrentQuarterNumber)'} &amp;gt;}&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula for the Max Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;[Posting Fiscal year]={$(=Max([Posting Fiscal year]))}&amp;gt;}&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put it back together I get an error. &lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;[Posting Fiscal year]={$(=Max([Posting Fiscal year]))},{ $&amp;lt; Quarter_number = {'$(vCurrentQuarterNumber)'} &amp;gt;}&amp;nbsp;&amp;nbsp; Actual )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I am just missing a coma or something that can be easily adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. I am on a tight deadline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 00:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1105818#M366236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-07T00:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max Year and Current Quarter syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1105819#M366237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have an extra set of {$ in there...&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;STRONG&gt;=Sum( {$&amp;lt;[Posting Fiscal year]={$(=Max([Posting Fiscal year]))},&lt;SPAN style="color: #ff0000;"&gt;{ $&amp;lt;&lt;/SPAN&gt; Quarter_number = {'$(vCurrentQuarterNumber)'} &amp;gt;}&amp;nbsp; Actual)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&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;STRONG&gt;=Sum({$&amp;lt;[Posting Fiscal year] = {$(=Max([Posting Fiscal year]))}, Quarter_number = {'$(vCurrentQuarterNumber)'}&amp;gt;} Actual)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 11:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1105819#M366237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-07T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Max Year and Current Quarter syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1591926#M443611</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I need to calculate the "&lt;STRONG&gt;count of the Orders&lt;/STRONG&gt;" based on "&lt;STRONG&gt;device_type&lt;/STRONG&gt;" for this Quarter and last Quarter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below one for this Quarter but that is always showing count 0 instead of the actual value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ordered_on = {"&amp;gt;=$(=Date(Quarterstart(max(ordered_on)), 'MM/DD/YYYY'))&amp;lt;=$(=date(max(ordered_on), 'MM/DD/YYYY'))"}&amp;gt;}device_type), &lt;/STRONG&gt;where date format in my db looks like&lt;STRONG&gt; "06/01/2019 05:05:25 PM"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I see more examples using Quarter filters, but i don't want to use Quarter filters in my project. I need it to be applied in a column using Expressions.&amp;nbsp; I tried modify most of the expressions to my needs from the community and nothing worked. I am looking for the working Expressions&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me to achieve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 07:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Year-and-Current-Quarter-syntax/m-p/1591926#M443611</guid>
      <dc:creator>Usermonk</dc:creator>
      <dc:date>2019-06-14T07:51:52Z</dc:date>
    </item>
  </channel>
</rss>

