<?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: Derive birthday and gender from string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737575#M590981</link>
    <description>&lt;P&gt;Sure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Attached in file.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 21:43:24 GMT</pubDate>
    <dc:creator>hollowshrine</dc:creator>
    <dc:date>2020-08-20T21:43:24Z</dc:date>
    <item>
      <title>Derive birthday and gender from string</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737569#M590978</link>
      <description>&lt;P&gt;Hi team &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm working on my Master's thesis and I have a field that contains data for both the client's birthday &lt;EM&gt;and&lt;/EM&gt; gender, formatted as such:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YYMMDD&lt;/STRONG&gt; for male,&lt;EM&gt; e.g.&lt;/EM&gt; 990101&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YYMM+50DD&lt;/STRONG&gt; for female, &lt;EM&gt;e.g.&lt;/EM&gt; 995101&lt;/P&gt;&lt;P&gt;Does anyone know how to derive a column with just the date and a column with just the gender?&lt;/P&gt;&lt;P&gt;Any help would be immensely appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737569#M590978</guid>
      <dc:creator>hollowshrine</dc:creator>
      <dc:date>2020-08-20T21:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Derive birthday and gender from string</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737570#M590979</link>
      <description>&lt;P&gt;can you share a sample data and the expected output ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737570#M590979</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-08-20T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Derive birthday and gender from string</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737573#M590980</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1597959424708.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39375i49C21342056D80E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_0-1597959424708.png" alt="Vegar_0-1597959424708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try script like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;LOAD 
   *,
   Dayname(alt(date#(GenderDate,'YYMMDD'),date#(GenderDate-5000,'YYMMDD'))) as BDay,
   IF(mid(GenderDate,3,2)&amp;gt;12, 'Female', 'Male') as Gender 
Inline [
GenderDate
990101
995101
991231
996231
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached qvw&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737573#M590980</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-08-20T21:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Derive birthday and gender from string</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737575#M590981</link>
      <description>&lt;P&gt;Sure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Attached in file.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737575#M590981</guid>
      <dc:creator>hollowshrine</dc:creator>
      <dc:date>2020-08-20T21:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Derive birthday and gender from string</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737576#M590982</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1597960262847.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39376i85E89C0A3130879C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_0-1597960262847.png" alt="Vegar_0-1597960262847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Date(alt (date#(birth_number, 'YYMMDD'),date#(birth_number-5000, 'YYMMDD')), 'YYMMDD') as CalculatedBirthday,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; IF(mid(birth_number,3,2)&amp;gt;12, 'female', 'male') as CalculatedGender&lt;BR /&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD&lt;BR /&gt;&amp;nbsp; birth_number, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; birthday as ExpectedBirthday, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; gender as ExpectedGender&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;FROM&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;example.xls&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;(biff, embedded labels, header is 1 lines, table is Sheet1$);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-birthday-and-gender-from-string/m-p/1737576#M590982</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-08-20T21:51:47Z</dc:date>
    </item>
  </channel>
</rss>

