<?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 Having problems with calculated dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229458#M81377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are Invoicedate and Orderdate both on the same table?&lt;/P&gt;&lt;P&gt;I would just calculate a new field, Invoicedate-Orderdate as DaysToInvoice, and use it as the dimension.&lt;/P&gt;&lt;P&gt;If you really want to calculate the duration on the fly in the chart, then I think your calculated dimension would simply be Invoicedate-Orderdate, no aggr(), no sum(), nothing complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Apr 2010 20:58:06 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-04-30T20:58:06Z</dc:date>
    <item>
      <title>Having problems with calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229457#M81376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a bar chart that will show the number of invoices per the frequency of days between order and delivery.&lt;/P&gt;&lt;P&gt;E.g. if the order was placed on the 1/1/2010 and was delivered on the 4/1/2010 then the number of days between order and delivery is = 3&lt;/P&gt;&lt;P&gt;What I want my barchart to show is the frequency per days between order and delivery.&lt;/P&gt;&lt;P&gt;|&lt;BR /&gt;| x (how many invoices)&lt;BR /&gt;| x&lt;BR /&gt;| x x&lt;BR /&gt;| x x x&lt;BR /&gt;| x x x&lt;BR /&gt;| x__x__x______________&lt;/P&gt;&lt;P&gt;1 2 3 (days between order and invoice&lt;/P&gt;&lt;P&gt;At the moment my dimension is:&lt;/P&gt;&lt;P&gt;=Aggr(Sum(Invoicedate-Orderdate))&lt;/P&gt;&lt;P&gt;but this is not working (error in dimension)&lt;/P&gt;&lt;P&gt;My expression is:&lt;/P&gt;&lt;P&gt;Count (DISTINCT InvoiceNo)&lt;/P&gt;&lt;P&gt;It seems that QV want's me to add something here&lt;/P&gt;&lt;P&gt;=Aggr(Sum(Invoicedate-Orderdate),MORE CODE IS NEEDED HERE)&lt;/P&gt;&lt;P&gt;but I do not have any ideas.&lt;/P&gt;&lt;P&gt;Anyone that has any ideas?&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 20:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229457#M81376</guid>
      <dc:creator />
      <dc:date>2010-04-30T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Having problems with calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229458#M81377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are Invoicedate and Orderdate both on the same table?&lt;/P&gt;&lt;P&gt;I would just calculate a new field, Invoicedate-Orderdate as DaysToInvoice, and use it as the dimension.&lt;/P&gt;&lt;P&gt;If you really want to calculate the duration on the fly in the chart, then I think your calculated dimension would simply be Invoicedate-Orderdate, no aggr(), no sum(), nothing complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 20:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229458#M81377</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-30T20:58:06Z</dc:date>
    </item>
    <item>
      <title>Having problems with calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229459#M81378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr is used to summarize by a dimension : Aggr( sum( ) , dimension)&lt;/P&gt;&lt;P&gt;In your example, i suspect you don't need aggr. Try just Invoicedate-Orderdate for your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 20:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-problems-with-calculated-dimensions/m-p/229459#M81378</guid>
      <dc:creator />
      <dc:date>2010-04-30T20:58:15Z</dc:date>
    </item>
  </channel>
</rss>

