<?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: Create Key with Code and YearMonth in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34726#M785667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, I changed the date because I thing there wa a mistake, infact the result you need works with changed date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If dates are really differen maybe you need aggragation by Code and Year+Month date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2018 13:16:07 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2018-03-02T13:16:07Z</dc:date>
    <item>
      <title>Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34721#M785662</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 the following table where DATE is MM/DD/YYYY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 240px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;CODE&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;DATE&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;QTY&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;111&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;05/05/2017&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;111&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;05/03/2017&lt;/TD&gt;&lt;TD align="right"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;333&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;08/03/2017&lt;/TD&gt;&lt;TD align="right"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to create a field named KEY to &lt;SPAN style="text-decoration: underline;"&gt;SUM by Script&lt;/SPAN&gt; (with Group By) each combination with CODE and DATE (YearMonth):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I should get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;KEY&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;QTY&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;111|201705&lt;/TD&gt;&lt;TD align="right"&gt;85&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;333|201708&lt;/TD&gt;&lt;TD align="right"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how could I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I should have a single &lt;STRONG&gt;KEY&lt;/STRONG&gt; value with summarized &lt;SPAN style="text-decoration: underline;"&gt;QTY&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34721#M785662</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34722#M785663</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;you need to create a Month field from your date field and make a group by on it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34722#M785663</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-01T15:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34723#M785664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;CODE, DATE, QTY&lt;/P&gt;&lt;P&gt;111, 05/05/2017, 30&lt;/P&gt;&lt;P&gt;111, 05/05/2017, 55&lt;/P&gt;&lt;P&gt;333, 08/03/2017, 18&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BBB:NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD CODE &amp;amp; DATE as KEY, Sum(QTY) as QTY Resident aaa Group By CODE,DATE;&lt;/P&gt;&lt;P&gt;DROP Table aaa;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34723#M785664</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2018-03-01T15:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34724#M785665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE,DATE,QTY&lt;/P&gt;&lt;P&gt;111,05/05/2017,30&lt;/P&gt;&lt;P&gt;111,05/03/2017,55&lt;/P&gt;&lt;P&gt;333,08/03/2017,18&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CODE,&lt;/P&gt;&lt;P&gt;text(Date(Date#(DATE,'MM/DD/YYYY'),'YYYYMM')) as DATE,&lt;/P&gt;&lt;P&gt;QTY&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CODE&amp;amp;'|'&amp;amp;DATE as KEY,&lt;/P&gt;&lt;P&gt;sum(QTY) as QTY&lt;/P&gt;&lt;P&gt;Resident Temp_2&lt;/P&gt;&lt;P&gt;Group by CODE,DATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp_2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34724#M785665</guid>
      <dc:creator>jaumecf23</dc:creator>
      <dc:date>2018-03-01T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34725#M785666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;his first two lines are different on the Day part..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can't group by these columns, right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34725#M785666</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-01T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34726#M785667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, I changed the date because I thing there wa a mistake, infact the result you need works with changed date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If dates are really differen maybe you need aggragation by Code and Year+Month date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 13:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34726#M785667</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2018-03-02T13:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with Code and YearMonth</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34727#M785668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CODE,DATE,QTY&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;111,05/05/2017,30&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;111,05/03/2017,55&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;333,08/03/2017,18&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp_2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CODE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;text(Date(Date#(DATE,'MM/DD/YYYY'),'YYYYMM')) as DATE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QTY&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Final:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CODE&amp;amp;'|'&amp;amp;DATE as KEY,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(QTY) as QTY&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Temp_2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by CODE,DATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table Temp_2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 13:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-Code-and-YearMonth/m-p/34727#M785668</guid>
      <dc:creator>jaumecf23</dc:creator>
      <dc:date>2018-03-02T13:20:08Z</dc:date>
    </item>
  </channel>
</rss>

