<?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: Calculated Dimension Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984322#M335900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, if the latest &lt;SPAN style="color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 16:04:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-24T16:04:05Z</dc:date>
    <item>
      <title>Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984317#M335895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm really struggling with something that seems like it should be easy, hope one of you clever people out there can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a calculated dimension, which works perfectly if I put it in a text box and the dimensions work perfectly on their own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;)) - &lt;SPAN style="color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TODAY&lt;/SPAN&gt;()) = -1, &lt;SPAN style="color: #800000;"&gt;SOLD.YOYPeriod&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;SOLD.YOYPeriod2Mnths&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I can't figure out what I'm doing wrong, please help, thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984317#M335895</guid>
      <dc:creator />
      <dc:date>2015-08-24T15:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984318#M335896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like an issue with date formats. Check both dates are correct format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984318#M335896</guid>
      <dc:creator>ChiragPradhan</dc:creator>
      <dc:date>2015-08-24T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984319#M335897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think since you are using Max() function here, you might need an aggregate function here. Won't really say much before knowing what you are trying to do. Can you elaborate what you are trying to do with your dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984319#M335897</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-24T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984320#M335898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all dates are the same format, what's confusing me is that if I copy the expression above into a text box and select certain dates from the calendars, the if statement works correctly and returns me the correct value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984320#M335898</guid>
      <dc:creator />
      <dc:date>2015-08-24T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984321#M335899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, what I'm trying to do is select which dimension to use, this is determined as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if &lt;SPAN style="color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt; is one month behind the current month then use &lt;SPAN style="color: #800000;"&gt;SOLD.YOYPeriod&lt;/SPAN&gt; as the dimension,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if &lt;SPAN style="color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt; is two months behind the current month then use &lt;SPAN style="color: #800000;"&gt;SOLD.YOYPeriod2Mnths&lt;/SPAN&gt; as the dimension.&lt;/P&gt;&lt;P&gt;Thanks, Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984321#M335899</guid>
      <dc:creator />
      <dc:date>2015-08-24T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984322#M335900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, if the latest &lt;SPAN style="color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 16:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984322#M335900</guid>
      <dc:creator />
      <dc:date>2015-08-24T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984323#M335901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find attached a sample. Just bear in mind, its best to avoid calculated dimensions for large data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 16:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984323#M335901</guid>
      <dc:creator>ChiragPradhan</dc:creator>
      <dc:date>2015-08-24T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984324#M335902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Sunny since you are using an aggregation in your calculated dimension, you need to use the function aggr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;month&lt;/SPAN&gt;(aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;),&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;)), - &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;TODAY&lt;/SPAN&gt;()) = -1, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SOLD.YOYPeriod&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SOLD.YOYPeriod2Mnths&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984324#M335902</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-08-24T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984325#M335903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon, I am late to this discussion, but I would add my solution just in case.&lt;/P&gt;&lt;P&gt;One of the most important rules for Calculated Dimension is that you can not used aggregation functions (sum, max, min etc). This is why your expressions worked perfectly in text boxes, but failed in Calculated dimension. To get around that limitation, you have to put all aggregation functions inside an aggr() one.&lt;/P&gt;&lt;P&gt;I believe your expression would work if written as follow:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;month&lt;/SPAN&gt;(aggr(nodistinct &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;IMPORT.SOLD_MMMYY&lt;/SPAN&gt;), Year&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;)&lt;/SPAN&gt;) - &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;TODAY&lt;/SPAN&gt;()) = -1, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SOLD.YOYPeriod&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SOLD.YOYPeriod2Mnths&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Error/m-p/984325#M335903</guid>
      <dc:creator>joe_nguyen</dc:creator>
      <dc:date>2015-10-27T15:37:27Z</dc:date>
    </item>
  </channel>
</rss>

