<?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: Synthetic Key issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287214#M27054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing the vPriorYearEnd from the set analysis doesn't help either. I tries with just Sum(Daily_Target), and it still cuts off at august, even though the data in the QVD exists up until the end of December.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 10:16:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-20T10:16:58Z</dc:date>
    <item>
      <title>Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287209#M27049</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 have 2 tables which I load, which are joined on a synthetic key (CENTER_ID and DATE). One contains the visits of members, and the other contains the visit targets for each center. I use them to show the performance to target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that centers which had no visits on a certain day, did not show a target for that day as well. It seems like the synthetic key created by the platform, requires the combination of CENTER_ID and DATE to exist on both tables, otherwise it won't load the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it's how its supposed to behave (Correct me if I'm wrong), and it seems inconsistent as well. Certain loads the data would load as I expect, but the next one it would not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to work around this by creating a table that connects the other 2 using a concatenated key, instead of letting the system create a synthetic key automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this:&lt;/P&gt;&lt;P&gt;Is having every combination of CENTER_ID and DATE required on both tables, in order to used a system created synthetic key?&lt;/P&gt;&lt;P&gt;Should I avoid synthetic keys in general? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287209#M27049</guid>
      <dc:creator />
      <dc:date>2016-12-20T08:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287210#M27050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I very much doubt the synthetic key is the issue. But without looking at the data I can't really say. Can you post a small Qlik Sense app that shows the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287210#M27050</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-20T08:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287211#M27051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the synthetic key should create all the options from the two tables &lt;/P&gt;&lt;P&gt;here is some reference to synthetic keys&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287211#M27051</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-12-20T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287212#M27052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic key isn't your problem - whereby you should always avoid them even if they work identically to an own combined key. Your problem are missing key-data and you couldn't solve it with a table-association. One solution would be to concatenate both tables which is quite easy and performant and the other would be to create a link-table between both tables which contained all key-values. See for this: &lt;A href="https://community.qlik.com/qlik-blogpost/3119"&gt;Concatenate vs Link 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>Tue, 20 Dec 2016 10:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287212#M27052</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-20T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287213#M27053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're right, and it's not the synthetic key (My fix with the concatenated key didn't solve it after all).&lt;/P&gt;&lt;P&gt;I'm still getting different results every few time I load the data, though the QVD's themselves don't change.&lt;/P&gt;&lt;P&gt;I'm not allowed to send the actual data, and I haven't been able to reproduce this with a test data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue might be related to my Set analysis somehow. I use a variable (In my load script) to only load data from the last year, based on the selection:&lt;/P&gt;&lt;P&gt;let vPriorYearEnd = '=MonthEnd(addmonths(YearStart(max(CHECK_IN_DATE)),-1))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then use this variable in my set analysis:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CHECK_IN_DATE={"&amp;gt;$(vPriorYearEnd)"}&amp;gt;}Daily_Target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the calculation of vPriorYearEnd isn't working properly sometimes. If I only load my TARGETS, the data is always fine, but it seems that sometimes the system checks the max(CHECK_IN_DATE), based on the CHECKINS table, and not from the whole data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My biggest issue seems to be that it's inconsistent. I attached 2 screenshots of the same visualization. Each time was after I did a load (The load script hasn't changed, and the data files haven't changed either).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="wrong.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147146_wrong.PNG" style="height: 306px; width: 620px;" /&gt;&lt;IMG alt="correct.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147139_correct.PNG" style="height: 348px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287213#M27053</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Key issue</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287214#M27054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing the vPriorYearEnd from the set analysis doesn't help either. I tries with just Sum(Daily_Target), and it still cuts off at august, even though the data in the QVD exists up until the end of December.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-Key-issue/m-p/1287214#M27054</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:16:58Z</dc:date>
    </item>
  </channel>
</rss>

