<?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 STRAIGHT TABLE ISSUE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954973#M328264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate the Average of&amp;nbsp; Orders which is the&amp;nbsp; &lt;/P&gt;&lt;P&gt;(Count of Orders last Years Dec + Count of Orders Max(Year and MOnth))/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below expression works fine, but when I put them in the Straight table and add Year as dimension It gives me both (Max Year and Max(Year)-1).&amp;nbsp; I would like to see only Max Year but with the below average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats the best way to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;Year = {$(=Max(Year)-1)},Month={'Dec'}&amp;gt;} DISTINCT Orders)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;Year = {$(=Max(Year))}&amp;gt;} DISTINCT Orders))/2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Oct 2015 22:57:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-11T22:57:58Z</dc:date>
    <item>
      <title>STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954973#M328264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate the Average of&amp;nbsp; Orders which is the&amp;nbsp; &lt;/P&gt;&lt;P&gt;(Count of Orders last Years Dec + Count of Orders Max(Year and MOnth))/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below expression works fine, but when I put them in the Straight table and add Year as dimension It gives me both (Max Year and Max(Year)-1).&amp;nbsp; I would like to see only Max Year but with the below average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats the best way to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;Year = {$(=Max(Year)-1)},Month={'Dec'}&amp;gt;} DISTINCT Orders)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;Year = {$(=Max(Year))}&amp;gt;} DISTINCT Orders))/2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 22:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954973#M328264</guid>
      <dc:creator />
      <dc:date>2015-10-11T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954974#M328265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think since you are using Year as a dimension, you would need to use Above() or Below() function here together with RangeSum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Year = Max(TOTAL Year), (RangeSum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(DISTINCT Orders), &lt;SPAN style="color: #ff0000;"&gt;Above&lt;/SPAN&gt;(Count(DISTINCT Orders))))/2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(RangeSum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count({&amp;lt;Year = {$(=Max(Year))}&amp;gt;} DISTINCT Orders), &lt;SPAN style="color: #ff0000;"&gt;Above&lt;/SPAN&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;Year = {$(=Max(Year)-1)},Month={'Dec'}&amp;gt;} DISTINCT Orders))))/2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954974#M328265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954975#M328266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which one out of the above is Max Year and which one&amp;nbsp; is the MaxYear -1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954975#M328266</guid>
      <dc:creator />
      <dc:date>2015-10-11T23:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954976#M328267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't realize there was a Month here as well. Can you share some sample data to look at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954976#M328267</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954977#M328268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both of the expression should give you the same result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Expression:&lt;/P&gt;&lt;P&gt;Max Year: &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT Orders)&lt;BR /&gt;&lt;/STRONG&gt;Max Year - 1: &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Above&lt;/SPAN&gt;(Count(DISTINCT Orders))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Expression:&lt;/P&gt;&lt;P&gt;Max Year: &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Year = {$(=Max(Year))}&amp;gt;} DISTINCT Orders)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Max Year -1: &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Above&lt;/SPAN&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Year = {$(=Max(Year)-1)}, Month={'Dec'}&amp;gt;} DISTINCT Orders))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need Month = {'Dec'} for both Max Year and Max Year - 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954977#M328268</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954978#M328269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO Need month only for Max Year -1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954978#M328269</guid>
      <dc:creator />
      <dc:date>2015-10-11T23:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954979#M328270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to check if one of these work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(Year = Max(TOTAL Year), (RangeSum(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count(DISTINCT Orders), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Above&lt;/SPAN&gt;({&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;,Month={'Dec'}&amp;gt;}&lt;/STRONG&gt;Count(DISTINCT Orders))))/2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(RangeSum(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count({&amp;lt;Year = {$(=Max(Year))}&amp;gt;} DISTINCT Orders), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Above&lt;/SPAN&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Year = {$(=Max(Year)-1)},Month={'Dec'}&amp;gt;} DISTINCT Orders))))/2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954979#M328270</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954980#M328271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doest work, it still gives me only max year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954980#M328271</guid>
      <dc:creator />
      <dc:date>2015-10-11T23:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954981#M328272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this application helps you understand what I am trying to say. This does not have Month = {'Dec'} filter because I did not add Month field in the application. But you should get an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 5 orders in 2014 and 4 in 2015 and there average next to 2015 comes out to 4.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954981#M328272</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954982#M328273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont see any attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954982#M328273</guid>
      <dc:creator />
      <dc:date>2015-10-11T23:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954983#M328274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Can you please email it to me at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:rsaeedga@gmail.com"&gt;rsaeedga@gmail.com&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954983#M328274</guid>
      <dc:creator />
      <dc:date>2015-10-11T23:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: STRAIGHT TABLE ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954984#M328275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sent in the mail. Also you can find it attached here: &lt;A href="https://community.qlik.com/message/887564"&gt;Re: STRAIGHT TABLE ISSUE&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 23:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRAIGHT-TABLE-ISSUE/m-p/954984#M328275</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-11T23:57:07Z</dc:date>
    </item>
  </channel>
</rss>

