<?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: connecting two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408436#M491667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use aggr() function to do the calculations by day or whatever you want, aggr() is like a group by so you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( sum(whatever), Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make a sum by day, you can add more dimensions to group by them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work with dates, the better is to have a Master Calendar, there are a lot of examples to create one and use dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 15:12:20 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-09-17T15:12:20Z</dc:date>
    <item>
      <title>connecting two tables</title>
      <link>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408435#M491666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got this in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visitors:&lt;/P&gt;&lt;P&gt;LOAD [Datum posjete] as [Visitors datum],&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Broj posjetitelja],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shop as Shopovi,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mjesec as [Visitors mjesec]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Y:\Shopovi\Analiza\Visitors.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table has Visit Date (1), number of Visitors (2), in which Shop (3) and in which month(4). All Visitors for all Shops, per Day and month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Goal is to see for every shop turnover, number of invoices... AND the number of visitors on that day for this shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 attachment shows my "Table view". The calculated values i get from the table "Linije", "Visitors" is attached to "Shopovi" so that the name of the Shop is the unique key(Maybe already here is an error, i do not know). I Also need an "connection" between Visitors Datum and InvoiceDate(in table Linije), with an Loop, it gives me wrong numbers and the visitors need to be connected to shopovi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 attachment shows the table i want it to look like. Now the "problem" is, all the calculated values/figures behind the field "Broj p..." show me the total amount for every shop. That is wrong, i would like that it shows me the values only for that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help on following things:&lt;/P&gt;&lt;P&gt;- How can i connect "InvoiceDate" and "Visitors Datum", at least for the calculations(sum(Lineamount))... so that table 2looks like this, but with rigth figures?&lt;/P&gt;&lt;P&gt;- How has an expression to look like if i need two fields "checked" for the right Value? sum(if(InvoiceDate=Visitors Datum and(if(Shopovi=?,Lineamount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance and i hope somebody can help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 12:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408435#M491666</guid>
      <dc:creator />
      <dc:date>2012-09-14T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: connecting two tables</title>
      <link>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408436#M491667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use aggr() function to do the calculations by day or whatever you want, aggr() is like a group by so you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( sum(whatever), Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make a sum by day, you can add more dimensions to group by them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work with dates, the better is to have a Master Calendar, there are a lot of examples to create one and use dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408436#M491667</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-09-17T15:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: connecting two tables</title>
      <link>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408437#M491668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer. The Mastercalendar is a nice feature, didnt know about it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i cant get it to work how i need. Seems i have to try a little bit more. But thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 07:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408437#M491668</guid>
      <dc:creator />
      <dc:date>2012-09-18T07:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: connecting two tables</title>
      <link>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408438#M491669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe someone can help me now. Attached youll see the tables(table viewer) i work with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Chart should look like this:&lt;/P&gt;&lt;P&gt;(DIMENSON):ShopName - Date(InvoiceDate) &lt;/P&gt;&lt;P&gt;(EXPRESSION):- Turnover - Nr. invoices.. - Nr. of Visitors(&lt;STRONG&gt;sum(br. posjetitelja)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem:&lt;/P&gt;&lt;P&gt;sum(Nr. Visitors) shows me all visitors for this shop, not for Date and Shop. F.ex. Shop XY worked 3 days, showing for every day Turnover and Nr. invoices, but Visitors are cumulative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that Nr. of Visitors will be shown for every day, not cumulative the whole file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve that? What i do need to connect? How does the expression has to look like? I tried sum(if(InvoiceDate=VisitorsDate and Shopovi) Broj posj.), but it doesnt show anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope its now clear and somebody can help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 07:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/connecting-two-tables/m-p/408438#M491669</guid>
      <dc:creator />
      <dc:date>2012-09-18T07:53:51Z</dc:date>
    </item>
  </channel>
</rss>

