<?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 Synth Table Despite Autonumber Keying in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767465#M719106</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I've been stuck on this issue for too long, so I'm turning to Qlik community for help.&lt;/P&gt;&lt;P&gt;To simplify, I have a similar script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
year(Date) as Y1,
month(Date) as M1,
Product1
Account,
User,
Date,
Autonumber(year(Date)&amp;amp;month(Date)&amp;amp;Applymap('ml_Product1',Product1,'error')) as Date_Key
From (irrelevant);

Table2:
Product2,
Year2 as Y1,
Month2 as M1,
TransactionAmount,
Autonumber(Year2&amp;amp;Month2&amp;amp;(Applymap('ml_Product2',Product2,'error')) as Date_Key
From (irrelevant);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is this produces a synthetic table between the two tables. I don't understand why is there a need for the synth table, if Autonumber in Table2 already includes the Y1 and M1 fields.&lt;/P&gt;&lt;P&gt;But anyway, I understand the fix is to remove Y1 and M1 fields from Table2. However, doing so produces wrong results for months January and November of year 2020 if I make a chart with dimensions Y1, M1 and an expression of '=sum(TransactionAmount)'. I have no idea why is that the case. The results are correct for all other months.&lt;/P&gt;&lt;P&gt;Looking forward to your input.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ray&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:43:22 GMT</pubDate>
    <dc:creator>FakeJupiter</dc:creator>
    <dc:date>2024-11-16T17:43:22Z</dc:date>
    <item>
      <title>Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767465#M719106</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I've been stuck on this issue for too long, so I'm turning to Qlik community for help.&lt;/P&gt;&lt;P&gt;To simplify, I have a similar script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
year(Date) as Y1,
month(Date) as M1,
Product1
Account,
User,
Date,
Autonumber(year(Date)&amp;amp;month(Date)&amp;amp;Applymap('ml_Product1',Product1,'error')) as Date_Key
From (irrelevant);

Table2:
Product2,
Year2 as Y1,
Month2 as M1,
TransactionAmount,
Autonumber(Year2&amp;amp;Month2&amp;amp;(Applymap('ml_Product2',Product2,'error')) as Date_Key
From (irrelevant);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is this produces a synthetic table between the two tables. I don't understand why is there a need for the synth table, if Autonumber in Table2 already includes the Y1 and M1 fields.&lt;/P&gt;&lt;P&gt;But anyway, I understand the fix is to remove Y1 and M1 fields from Table2. However, doing so produces wrong results for months January and November of year 2020 if I make a chart with dimensions Y1, M1 and an expression of '=sum(TransactionAmount)'. I have no idea why is that the case. The results are correct for all other months.&lt;/P&gt;&lt;P&gt;Looking forward to your input.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ray&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767465#M719106</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2024-11-16T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767467#M719107</link>
      <description>&lt;P&gt;just drop Y1 and M1 from one of the tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;try that&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 19:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767467#M719107</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-09T19:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767517#M719108</link>
      <description>&lt;P&gt;As &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;says or like this :&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;year(Date) as Y1,&lt;BR /&gt;month(Date) as M1,&lt;BR /&gt;Product1&lt;BR /&gt;Account,&lt;BR /&gt;User,&lt;BR /&gt;Date,&lt;BR /&gt;Autonumber(year(Date)&amp;amp;month(Date)&amp;amp;Applymap('ml_Product1',Product1,'error')) as Date_Key&lt;BR /&gt;From (irrelevant);&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Product2,&lt;BR /&gt;Year2 as &lt;STRONG&gt;Y2,&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;Month2 as &lt;STRONG&gt;M2,&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;TransactionAmount,&lt;BR /&gt;Autonumber(Year2&amp;amp;Month2&amp;amp;(Applymap('ml_Product2',Product2,'error')) as Date_Key&lt;BR /&gt;From (irrelevant);&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 05:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767517#M719108</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-10T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767530#M719109</link>
      <description>&lt;P&gt;Thank you guys, but as I said, the problem is, if I drop those two fields, wrong results are produced (see the bottom of my original post). Any ideas why that might be the case?&lt;/P&gt;&lt;P&gt;And I cannot call one Y1 and M1 and the other Y2 and M2, because I need them both in the same pivot chart.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 07:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767530#M719109</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2020-12-10T07:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767533#M719110</link>
      <description>&lt;P&gt;1: Check the subset ratio of the Automumber key, that might be the issue for the mismatch with and without Syntetic key&lt;/P&gt;&lt;P&gt;2: Use right/left keep instead if feasible for your problem&lt;/P&gt;&lt;P&gt;-Pradosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 07:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767533#M719110</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2020-12-10T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767534#M719111</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92988"&gt;@FakeJupiter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try with link Table concept for this scenario.&lt;/P&gt;&lt;P&gt;FYR:&amp;nbsp;&lt;A href="https://www.learnallbi.com/link-table-in-qlikview/#:~:text=When%20you%20have%20multiple%20Fact,rows%20of%20the%20two%20tables" target="_blank"&gt;https://www.learnallbi.com/link-table-in-qlikview/#:~:text=When%20you%20have%20multiple%20Fact,rows%20of%20the%20two%20tables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 07:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767534#M719111</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-10T07:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767623#M719112</link>
      <description>&lt;P&gt;Thanks everybody for your help.&lt;/P&gt;&lt;P&gt;I finally figured out what was the problem why there was wrong data in January and November if I removed the Y1 and M1 fields from Table2.&lt;/P&gt;&lt;P&gt;This issue, of course, was in the Autonumber, as some entries were matched incorrectly.&lt;BR /&gt;The product I put into Autonumber field with Applymap was a number - from 1 to 31.&lt;BR /&gt;So, for instance, in January of 2020 the Autonumber function may have gotten this information: "2020117" (year&amp;amp;month&amp;amp;product). The thing is that in november it got the same input, but month was 11 not 1 and product was 7 not 17. Therefore there were some double entries.&lt;/P&gt;&lt;P&gt;I fixed this by adding 100 to the month field, so that all month names are of 3 digits.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Autonumber(year(Date)&amp;amp;(100+month(Date))&amp;amp;Applymap('ml_Product1',Product1,'error')) as Date_Key&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 12:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767623#M719112</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2020-12-10T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767624#M719113</link>
      <description>&lt;P&gt;Subset ratio was not the issue, but after doing some reading I learned more about it, so thank you! See the solution below, if you're interested.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 12:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767624#M719113</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2020-12-10T12:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Synth Table Despite Autonumber Keying</title>
      <link>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767625#M719114</link>
      <description>&lt;P&gt;Link Tables would not have resolved the issue, as it would inherit the same problem I had with autonumber, but thank you, I read the article, seemed useful!&lt;/P&gt;&lt;P&gt;See the solution below, if interested.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 12:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synth-Table-Despite-Autonumber-Keying/m-p/1767625#M719114</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2020-12-10T12:10:29Z</dc:date>
    </item>
  </channel>
</rss>

