<?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 keys in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989841#M81837</link>
    <description>&lt;P&gt;&lt;SPAN&gt;quartername&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 01:34:23 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2022-10-07T01:34:23Z</dc:date>
    <item>
      <title>Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989603#M81791</link>
      <description>Dear Sir
Can someone help me to resolve the followings:
1. synthetic keys (Part# and Date) 
2. Drill down date by year, quarter, month, week and day 
Thank you, Tracy</description>
      <pubDate>Thu, 06 Oct 2022 13:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989603#M81791</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2022-10-06T13:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989654#M81800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28151"&gt;@tracycrown&lt;/a&gt;&amp;nbsp;, try this, it will create a union table, using a composite field, and the desired fields :&lt;/P&gt;
&lt;P&gt;Qlik Help about synthetic keys.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/synthetic-keys.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/synthetic-keys.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the drill down, check this about groups :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Hierarchic_groups_drilldown.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Hierarchic_groups_drilldown.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Receiving:&lt;BR /&gt;LOAD &lt;BR /&gt;Part# &amp;amp;' | ' &amp;amp; Date as %_Key,&lt;BR /&gt;Invoice# as P_Invoice#, &lt;BR /&gt;Quantity as P_Quantity,&lt;BR /&gt;Total as P_TotalAmt, &lt;BR /&gt;Unit_Cost, &lt;BR /&gt;Vendor# &lt;BR /&gt;FROM&lt;BR /&gt;[Test Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Receiving);&lt;/P&gt;
&lt;P&gt;Issuing:&lt;BR /&gt;LOAD &lt;BR /&gt;Part# &amp;amp;' | ' &amp;amp; Date as %_Key,&lt;BR /&gt;Invoice# as S_Invoice#, &lt;BR /&gt;Quantity as S_Quantity,&lt;BR /&gt;Total as S_TotalAmt, &lt;BR /&gt;Unit_Price, &lt;BR /&gt;Customer#&lt;BR /&gt;FROM&lt;BR /&gt;[Test Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Issuing);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Union_Aux:&lt;BR /&gt;Load distinct&lt;BR /&gt;%_Key&lt;BR /&gt;Resident Receiving;&lt;BR /&gt;Load distinct&lt;BR /&gt;%_Key&lt;BR /&gt;Resident Issuing;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Union:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Load distinct&lt;BR /&gt;%_Key,&lt;BR /&gt;subfield(%_Key, ' | ', 1) as &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Part#&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;date(subfield(%_Key, ' | ', 2)) as &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;year(subfield(%_Key, ' | ', 2)) as Year,&lt;BR /&gt;quartername(subfield(%_Key, ' | ', 2)) as &lt;STRONG&gt;Quarter&lt;/STRONG&gt;,&lt;BR /&gt;Month(subfield(%_Key, ' | ', 2)) as Month,&lt;BR /&gt;day(subfield(%_Key, ' | ', 2)) as Day&lt;BR /&gt;Resident Union_Aux;&lt;/P&gt;
&lt;P&gt;drop table Union_Aux;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/quartername.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/quartername.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 19:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989654#M81800</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-10-06T19:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989708#M81817</link>
      <description>&lt;P&gt;Dear QFabian&lt;/P&gt;
&lt;P&gt;Thank you so much for your quick response.&lt;/P&gt;
&lt;P&gt;I do not understand why &lt;STRONG&gt;YEAR&lt;/STRONG&gt; (Subfield(%_Key) for Quarter, Month and Day&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;date(subfield(%_Key, ' | ', 2)) as Date,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;year(subfield(%_Key, ' | ', 2)) as Year,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;year(subfield(%_Key, ' | ', 2)) as Quarter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;year(subfield(%_Key, ' | ', 2)) as MOnth,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;year(subfield(%_Key, ' | ', 2)) as Day&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident Union_Aux;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, it looks funny to replace Part# with % Key, see attached below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tracycrown_0-1665071747045.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90737i42726D1DAEC766B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tracycrown_0-1665071747045.png" alt="tracycrown_0-1665071747045.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989708#M81817</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2022-10-06T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989753#M81825</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28151"&gt;@tracycrown&lt;/a&gt;&amp;nbsp;&amp;nbsp;Please check the updated post.&lt;/P&gt;
&lt;P&gt;The fields where recreated in the UNION table.&lt;/P&gt;
&lt;P&gt;It supossed to be year, quarter, month and day functions, i forgot to do that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 19:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989753#M81825</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-10-06T19:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989836#M81836</link>
      <description>&lt;P&gt;Dear QFabian&lt;/P&gt;
&lt;P&gt;Thank you so much for your clarification. Please note that quarter no working :&lt;/P&gt;
&lt;P&gt;Quarter(subfield(%_Key, ' | ', 2)) as Quarter,&lt;/P&gt;
&lt;P&gt;Thanks, Tracy&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 00:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989836#M81836</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2022-10-07T00:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989841#M81837</link>
      <description>&lt;P&gt;&lt;SPAN&gt;quartername&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 01:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989841#M81837</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-10-07T01:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989863#M81838</link>
      <description>&lt;P&gt;Dear QFabian&lt;/P&gt;
&lt;P&gt;Please help to answer the following :&lt;/P&gt;
&lt;P&gt;1. May I know why 1st row for Part# is blank&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tracycrown_0-1665114346243.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90764i4804F0A4ED80C264/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tracycrown_0-1665114346243.png" alt="tracycrown_0-1665114346243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. How to change Quartername (Jan-Mar 2021) to Q1-2021&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tracycrown_1-1665114423463.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90765i6C85044CF7241F08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tracycrown_1-1665114423463.png" alt="tracycrown_1-1665114423463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you, Tracy&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 03:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1989863#M81838</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2022-10-07T03:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys</title>
      <link>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1990436#M81909</link>
      <description>&lt;P&gt;Dear QFabian&lt;/P&gt;
&lt;P&gt;May be you are too busy to answer above queries but I have resolved them today.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks, Tracy&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 14:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Synthetic-keys/m-p/1990436#M81909</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2022-10-08T14:49:48Z</dc:date>
    </item>
  </channel>
</rss>

