<?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: Error in Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512398#M556847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue( aggr(sum(stkh_movement_quantity),stkh_product,stkh_movement_date), -aggr(stkh_movement_date,stkh_product) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 13:15:13 GMT</pubDate>
    <dc:creator>nam</dc:creator>
    <dc:date>2013-06-26T13:15:13Z</dc:date>
    <item>
      <title>Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512394#M556843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use the following expression as a Calculated Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =FirstSortedValue( aggr(sum(stkh_movement_quantity),stkh_product,stkh_movement_date), -aggr(stkh_movement_date,stkh_product,stkh_movement_date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is to give only the most recent movement quantity, based on the latest movement date. It works fine as an expression, however when used as a Dimension I get the //Error in Calculated Dimension. Any ideas where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512394#M556843</guid>
      <dc:creator />
      <dc:date>2013-06-26T12:54: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/512395#M556844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may just have an extra bracket at the end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512395#M556844</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512396#M556845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was just bad copying and pasting, the extra bracket isn't there on the actual doc. Good spot though...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512396#M556845</guid>
      <dc:creator />
      <dc:date>2013-06-26T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512397#M556846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression looks ok.. one thing to check is see if that date field is actually seen as date in qlikview.. Iv used a similar formula as an expression and it works fine but not as a dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512397#M556846</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T13:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512398#M556847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue( aggr(sum(stkh_movement_quantity),stkh_product,stkh_movement_date), -aggr(stkh_movement_date,stkh_product) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512398#M556847</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T13:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512399#M556848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gives the same error unfortunately...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512399#M556848</guid>
      <dc:creator />
      <dc:date>2013-06-26T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512400#M556849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give a small sample data with a table n QV .. scramble the data if need be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512400#M556849</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T13:49: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/512401#M556850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the context is corect i dont think it is possible to use the FirstSortedValue in a calculated Dimension, as it is designed to return the first value of expression itterated over a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test this just copy your calculated dimension calculation into a straight table expression and use a single dimension and if it works without errors means that function "First Sorted Value" is not appropriate to be used within a calculated dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512401#M556850</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512402#M556851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Nam. The calculation definitely works fine as an expression. Does anybody know of a work around to use this as a dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512402#M556851</guid>
      <dc:creator />
      <dc:date>2013-06-26T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512403#M556852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My proposed solution would be create a flag in the script to identify the latest date for each product and use that flag in set analysis within the calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 15:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512403#M556852</guid>
      <dc:creator>nam</dc:creator>
      <dc:date>2013-06-26T15:03: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/512404#M556853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&amp;nbsp; &lt;/P&gt;&lt;P&gt; I am given a task to calculate the frequency of calls across a territory. If the rep called a physician regarding the sale of the product 5 times, then frequency is 5 and HCP count is 1....I generated frequencies from 1 to 124 in my pivot table using a calculated dimension which is working fine. But my concern is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My manager wants frequencies till 19 in order from 1..2..3..4...5..6.....19... &lt;/P&gt;&lt;P&gt;And from the frequency 21-124 as 20+.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be grateful if someone helps me with this.....Eager for the reply....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 18:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Dimension/m-p/512404#M556853</guid>
      <dc:creator />
      <dc:date>2014-02-05T18:50:04Z</dc:date>
    </item>
  </channel>
</rss>

