<?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 SV:Show data in one chart based on different dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221342#M504486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Now I find many post suggest using 'link table' and I'll have a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 07:34:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-23T07:34:06Z</dc:date>
    <item>
      <title>Show data in one chart based on different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221340#M504484</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;A question about set analysis -- "show data in one chart based on different dimensions".&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks a lot!&lt;/P&gt;&lt;P&gt;The basic tables look like following, and you can change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Customers:&lt;BR /&gt;load&lt;BR /&gt;CustomerID,&lt;BR /&gt;Date(RegDate) as RegDate&lt;BR /&gt;inline&lt;BR /&gt;[&lt;BR /&gt;CustomerID, RegDate&lt;BR /&gt;1, 2009-01-01&lt;BR /&gt;2, 2009-01-01&lt;BR /&gt;3, 2009-01-02&lt;BR /&gt;4, 2009-01-05&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Orders:&lt;BR /&gt;load&lt;BR /&gt;OrderID,&lt;BR /&gt;CustomerID,&lt;BR /&gt;Date(OrderDate) as OrderDate&lt;BR /&gt;inline&lt;BR /&gt;[&lt;BR /&gt;OrderID, CustomerID, OrderDate&lt;BR /&gt;1, 1, 2009-01-01&lt;BR /&gt;2, 2, 2009-01-01&lt;BR /&gt;3, 1, 2009-01-03&lt;BR /&gt;4, 1, 2009-01-04&lt;BR /&gt;5, 3, 2009-01-04&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What I want to see is # of Registers and # of Orders by day (register date and order date)&lt;/P&gt;&lt;P&gt;Date, NbRegs, NbOrders&lt;BR /&gt;2009-01-01, 2, 2&lt;BR /&gt;2009-01-02, 1, 0&lt;BR /&gt;2009-01-03, 0, 1&lt;BR /&gt;2009-01-04, 0, 2&lt;BR /&gt;2009-01-05, 1, 0&lt;/P&gt;&lt;P&gt;Could anyone help to provide the expresssion?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 07:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221340#M504484</guid>
      <dc:creator />
      <dc:date>2010-01-25T07:26:28Z</dc:date>
    </item>
    <item>
      <title>SV:Show data in one chart based on different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221341#M504485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need set analysis if you just create a new dimension named "Date" based on a concatenation of the two "RegDate" and "OrderDate". Then count the number of CustomerID and OrderID for each Date.&lt;/P&gt;&lt;P&gt;A quicker way than count is to use sum, see attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Statistics:&lt;BR /&gt;load&lt;BR /&gt;RegDate as Date,&lt;BR /&gt;CustomerID,&lt;BR /&gt;1 as NbRegs&lt;BR /&gt;resident Customers;&lt;BR /&gt;&lt;BR /&gt;concatenate&lt;BR /&gt;load&lt;BR /&gt;OrderDate as Date,&lt;BR /&gt;OrderID,&lt;BR /&gt;1 as NbOrders&lt;BR /&gt;resident Orders;&lt;BR /&gt;&lt;BR /&gt;//the expressiones used to count NbRegs and NbOrders in the table later is sum(NbRegs) and sum(NbOrders) with the dimension Date&lt;BR /&gt;//alternately, the slower way to calculate is to use count(distinct OrderID) and count(distinct CustomerID) with the dimension Date&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jakob Berglund&lt;/P&gt;&lt;P&gt;MILLNET BI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 10:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221341#M504485</guid>
      <dc:creator />
      <dc:date>2010-01-25T10:57:29Z</dc:date>
    </item>
    <item>
      <title>SV:Show data in one chart based on different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221342#M504486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Now I find many post suggest using 'link table' and I'll have a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 07:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221342#M504486</guid>
      <dc:creator />
      <dc:date>2010-04-23T07:34:06Z</dc:date>
    </item>
    <item>
      <title>SV:Show data in one chart based on different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221343#M504487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Jakob Berglund wrote:A quicker way than count is to use sum&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That seems to depend on the version.&lt;/P&gt;&lt;P&gt;I forget which versions I tested, and which direction it was in each case, but in one version I tested, count() was faster (which I would expect), and in the other, sum() was faster (which seems unusual to me). In any case, if performance is critical, you'll want to test both count() and sum(). If performance isn't critical, I'd just use count(), because it seems more obvious so should therefore be slightly easier for less experienced people to maintain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Apr 2010 00:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-data-in-one-chart-based-on-different-dimensions/m-p/221343#M504487</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-24T00:50:07Z</dc:date>
    </item>
  </channel>
</rss>

