<?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 Error in calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571096#M212788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can anyone see what I'm doing wrong here? I have a calculated dimension of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week &amp;lt; Week(Max([Trade Date]) ), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which should show all weeks other than the week of the maximum trade date, right? This isn't what I'm trying to achieve overall, so I'm not looking for alternatives, just why this peice of code isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 21:08:49 GMT</pubDate>
    <dc:creator>richnorris</dc:creator>
    <dc:date>2014-04-28T21:08:49Z</dc:date>
    <item>
      <title>Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571096#M212788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can anyone see what I'm doing wrong here? I have a calculated dimension of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week &amp;lt; Week(Max([Trade Date]) ), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which should show all weeks other than the week of the maximum trade date, right? This isn't what I'm trying to achieve overall, so I'm not looking for alternatives, just why this peice of code isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571096#M212788</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2014-04-28T21:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571097#M212789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Calculated Dimension&lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;Dimension = Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Something Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Week = {'$(=Week(Max([Trade Date])))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571097#M212789</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571098#M212790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you're saying its impossible to fix that code to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571098#M212790</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2014-04-28T21:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571099#M212791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not like that...&lt;/P&gt;&lt;P&gt;this is alternate suggestion.&lt;/P&gt;&lt;P&gt;if you upload you sample file or apps, we can see what exactly wrong with your calculated dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571099#M212791</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T21:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571100#M212792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would need to use advanced aggregation (aggr() function) in your calculated dimension if you want to use an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's probably easier if you define&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =max([Trade Date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a variable vMaxTradeDate, then use this in the calculated dimension:&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;if(Week &amp;lt; Week(vMaxTradeDate), Week)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and check if [Trade Date] is a date with a numeric representation, so max() will return a value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 22:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571100#M212792</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-28T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571101#M212793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just need to add the TOTAL qualifier. &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; font-size: 12.727272033691406px;"&gt;=if(Week &amp;lt; Week(Max(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; [Trade Date]) ), Week)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&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; font-size: 12.727272033691406px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 22:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculation/m-p/571101#M212793</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-04-28T22:19:37Z</dc:date>
    </item>
  </channel>
</rss>

