<?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: Linking tables in Data Model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732376#M1073526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually sum(bonus) worked as well.&lt;/P&gt;&lt;P&gt;It showed just the monthly bonus of an agent and not multiplied monthly bonus, even if there were few orders in different dates by the same agent.&lt;/P&gt;&lt;P&gt;I needed to use sum(bonus) cause I have a set analysis expression: sum({&amp;lt;...&amp;gt;} bonus)&lt;/P&gt;&lt;P&gt;I don't really know why it worked but it worked.&lt;/P&gt;&lt;P&gt;By the way, it there a way to write a set analysis expression but without the "sum"? Something like:&lt;/P&gt;&lt;P&gt;{&amp;lt;...&amp;gt;} bonus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 12:56:04 GMT</pubDate>
    <dc:creator>linoyel</dc:creator>
    <dc:date>2014-08-07T12:56:04Z</dc:date>
    <item>
      <title>Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732367#M1073517</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;I have sales, bonuses and calendar tables.&lt;/P&gt;&lt;P&gt;Sales table holds agent sales data per date. It's linked to the calendar on date field.&lt;/P&gt;&lt;P&gt;Bonuses table holds MONTHLY agent bonuses. It has only year and month fields, but not the date.&lt;/P&gt;&lt;P&gt;I'm supposed to show in a table monthly sales and bonuses for agents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I supposed to link bonuses table to the sales table? &lt;/P&gt;&lt;P&gt;Only by agent_id is not enough, I also have to link some date field in order to link it right to the calendar...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 11:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732367#M1073517</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2014-08-07T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732368#M1073518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on this thread: &lt;A href="https://community.qlik.com/thread/128013"&gt;Is it possible to run a macro for each row of a chart (table)&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>Thu, 07 Aug 2014 12:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732368#M1073518</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-07T12:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732369#M1073519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, I didn't really understand the connection...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732369#M1073519</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2014-08-07T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732370#M1073520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group sales by month (if you don't need by date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or replace month year fields in monthly bonuses with date (1st of month); in the user interface use month for the analysis of bonuses and sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732370#M1073520</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-07T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732371#M1073521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you'll have to be very careful with this data.&amp;nbsp; From your Sales table, create a key based on the month and year of the date:&lt;/P&gt;&lt;P&gt;autonumber([salesperson] &amp;amp; num(month([date field])) &amp;amp; '|' &amp;amp; year([date field])) as monthlybonuslink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this field to the monthly bonus table also:&lt;/P&gt;&lt;P&gt;autonumber([salesperson] &amp;amp; '|' [month] &amp;amp; '|' &amp;amp; [year]) as monthlybonuslink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will then have a link to the table, but depending how you want to display the bonus amount, you'll need to be careful because there will be a link for every salesperson/date.&amp;nbsp; For instance, if Salesperson A had 10 orders in January 2014, and 1 bonus, if you did a sum on bonus amount, you would get bonus * 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732371#M1073521</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-07T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732372#M1073522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the from these posting you will find a load-example and a few explanations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Customer, Date, Sales From Sales;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate&lt;/P&gt;&lt;P&gt;Load Customer, makedate(Year, Month, 1) as Date, Budget From Budget;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732372#M1073522</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-07T12:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732373#M1073523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Facts:&lt;/P&gt;&lt;P&gt;load Employee,&lt;/P&gt;&lt;P&gt;Date as %DateKey,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;'Sales' as FactType&lt;/P&gt;&lt;P&gt;from Sales.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Facts)&lt;/P&gt;&lt;P&gt;load Employee,&lt;/P&gt;&lt;P&gt;Makedate(Year,Month) as %DateKey,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;'Bonus' as FactType&lt;/P&gt;&lt;P&gt;from Bonus.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bonus would then be sum({$&amp;lt;FactType={'Bonus'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;sales would be sum({$&amp;lt;FactType={'Sales'}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732373#M1073523</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-07T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732374#M1073524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Josh, yeah - that's the approach that worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks!&lt;/P&gt;&lt;P&gt;I linked the sales and bonuses tables on 2 fields: agent_id and YearMonth.&lt;/P&gt;&lt;P&gt;In order to get YearMonth I used MakeDate() function in both tables &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Regarding displaying sales data it's gonna be sum(sales) and bonus as is (not sum(bonus)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732374#M1073524</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2014-08-07T12:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732375#M1073525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;I did replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;month year fields in monthly bonuses with date (1st of month)&lt;/SPAN&gt; but when I left it as is it didn't get me monthly bonuses if there were no sale on the 1-st of each month.&lt;/P&gt;&lt;P&gt;So, what I did is this making YearMonth fields in both tables using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;MakeDate() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732375#M1073525</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2014-08-07T12:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732376#M1073526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually sum(bonus) worked as well.&lt;/P&gt;&lt;P&gt;It showed just the monthly bonus of an agent and not multiplied monthly bonus, even if there were few orders in different dates by the same agent.&lt;/P&gt;&lt;P&gt;I needed to use sum(bonus) cause I have a set analysis expression: sum({&amp;lt;...&amp;gt;} bonus)&lt;/P&gt;&lt;P&gt;I don't really know why it worked but it worked.&lt;/P&gt;&lt;P&gt;By the way, it there a way to write a set analysis expression but without the "sum"? Something like:&lt;/P&gt;&lt;P&gt;{&amp;lt;...&amp;gt;} bonus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732376#M1073526</guid>
      <dc:creator>linoyel</dc:creator>
      <dc:date>2014-08-07T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables in Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732377#M1073527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case linking these tables didn't work always properly. Often yes but not always. If some areas have sales and none budget or some have budgets and none sales then this will lead to links against null. Therefore my tables are concatenated and all calculations are fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis couldn't be used without an aggregation function but it could by also only(). In your case I think you didn't need set analysis and a sum(bonus) will work, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 13:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-in-Data-Model/m-p/732377#M1073527</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-07T13:09:07Z</dc:date>
    </item>
  </channel>
</rss>

