<?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 calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019381#M942625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm having a problem with the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Fiscal Year] &amp;lt;= max({$&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [District Name] = {'$(vMyDistrictName)'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Fiscal Year]&lt;/P&gt;&lt;P&gt;&amp;nbsp; ), [Fiscal Year]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the maximum value for fiscal year and then only have the Axis go up to that value. Nothing is wrong with the Max() function because I have it displaying the correct year in a text box. QlikView just says that there is an error in expression and doesn't show any dimension values on the x-axis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2016 15:01:38 GMT</pubDate>
    <dc:creator>dselgo_eidex</dc:creator>
    <dc:date>2016-01-18T15:01:38Z</dc:date>
    <item>
      <title>Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019381#M942625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm having a problem with the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Fiscal Year] &amp;lt;= max({$&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [District Name] = {'$(vMyDistrictName)'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Fiscal Year]&lt;/P&gt;&lt;P&gt;&amp;nbsp; ), [Fiscal Year]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the maximum value for fiscal year and then only have the Axis go up to that value. Nothing is wrong with the Max() function because I have it displaying the correct year in a text box. QlikView just says that there is an error in expression and doesn't show any dimension values on the x-axis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 15:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019381#M942625</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2016-01-18T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019382#M942626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 16:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019382#M942626</guid>
      <dc:creator />
      <dc:date>2016-01-18T16:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019383#M942627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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&gt;=If([Fiscal Year] &amp;lt;= Max(TOTAL {$&amp;lt;&lt;SPAN style="line-height: 1.5em;"&gt;[District Name] = {'$(vMyDistrictName)'}&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt;}[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;), [Fiscal Year]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 16:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019383#M942627</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-18T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019384#M942628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used an aggregation-function within a calculated dimension you need to wrap the expression with an aggr-function, it should more look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;/P&gt;&lt;P&gt;if([Fiscal Year] &amp;lt;= max({$&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [District Name] = {'$(vMyDistrictName)'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Fiscal Year]&lt;/P&gt;&lt;P&gt;&amp;nbsp; ), [Fiscal Year]&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;[Fiscal Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have also a look here:&lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 16:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019384#M942628</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-18T16:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019385#M942629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that this was correct. I ended up solving the problem I was having without using a calculated dimension so I'm not sure if this works, but from what you are saying I think it would. Thanks for all the help everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 18:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019385#M942629</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2016-01-19T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019386#M942630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, &lt;/P&gt;&lt;P&gt;Hope you're well. &lt;BR /&gt;I have the same problem, I am trying to create a calculated dimension with below expression but I get the error. &lt;/P&gt;&lt;P&gt;I don't know how exactly I can wrap this inside aggr() function: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(FirstSortedValue(DueIn,-%DateKey)&amp;lt;0&lt;/P&gt;&lt;P&gt;,'Overdue'&lt;/P&gt;&lt;P&gt;,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=5&lt;/P&gt;&lt;P&gt;AND WCategory='1'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon'&lt;/P&gt;&lt;P&gt;,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=14&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND WCategory='2'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=30&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND WCategory='3'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon','Seen in Time'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019386#M942630</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2018-02-22T23:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019387#M942631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr comes on the outside in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(FirstSortedValue(DueIn,-%DateKey)&amp;lt;0&lt;/P&gt;&lt;P&gt;,'Overdue'&lt;/P&gt;&lt;P&gt;,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=5&lt;/P&gt;&lt;P&gt;AND WCategory='1'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon'&lt;/P&gt;&lt;P&gt;,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=14&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND WCategory='2'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,if(FirstSortedValue(DueIn,-%DateKey)&amp;gt;=0&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND FirstSortedValue(DueIn,-%DateKey)&amp;lt;=30&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND WCategory='3'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'Due Soon','Seen in Time')))),&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DueIn,%DateKey)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby I assume that DueIn and %DateKey are the needed dimensions for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 06:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension/m-p/1019387#M942631</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-02-23T06:37:58Z</dc:date>
    </item>
  </channel>
</rss>

