<?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: Salary distribution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848318#M1008835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrTmp:&lt;/P&gt;&lt;P&gt;Crosstable (Field,Ename,1) LOAD EMPNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))=0,Ename) as Ename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))&amp;gt;0,if(Date#(EndDt,'DD-MMM-YY')&amp;lt;Date#(StartDt,'DD-MMM-YY'), Incharge1)) as Incharge1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))&amp;gt;0,if(Date#(EndDt,'DD-MMM-YY')&amp;lt;Date#(StartDt,'DD-MMM-YY'), Incharge2)) as Incharge2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="163767" data-objecttype="1" href="https://community.qlik.com/thread/163767"&gt;https://community.qlik.com/thread/163767&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enames:&lt;/P&gt;&lt;P&gt;Noconcatenate Load * Resident CrTmp;&lt;/P&gt;&lt;P&gt;Drop table CrTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD EMPNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SAL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="163767" data-objecttype="1" href="https://community.qlik.com/thread/163767"&gt;https://community.qlik.com/thread/163767&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join the tabless and and remove Field Field, but I left it in for checking, see also attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 09:36:37 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-05-13T09:36:37Z</dc:date>
    <item>
      <title>Salary distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848317#M1008834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the hierarchy&lt;STRONG&gt; Incharge1 &amp;gt; Incharge2 &amp;gt; Ename &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If EndDt&amp;lt;StartDt then SAL&amp;nbsp; x amount should go to each &lt;STRONG style="font-size: 13.3333330154419px;"&gt;Incharge1&amp;nbsp; &amp;amp; Incharge2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;If EndDt &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;is&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; NULL then SAL should go to &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Ename&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My report should show like the below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EMPNO&amp;nbsp; Ename&amp;nbsp; StartDt&amp;nbsp; SAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this? Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 452px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;EMPNO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Ename&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="68"&gt;Incharge1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Incharge2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="35"&gt;SAL&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="70"&gt;StartDt&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="71"&gt;EndDt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;9-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename6&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename7&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;9-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename14&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename15&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10-May-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;18&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename18&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;19&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename19&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename20&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Ename9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11-May-15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 08:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848317#M1008834</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-05-13T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Salary distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848318#M1008835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrTmp:&lt;/P&gt;&lt;P&gt;Crosstable (Field,Ename,1) LOAD EMPNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))=0,Ename) as Ename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))&amp;gt;0,if(Date#(EndDt,'DD-MMM-YY')&amp;lt;Date#(StartDt,'DD-MMM-YY'), Incharge1)) as Incharge1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Trim(Len(EndDt))&amp;gt;0,if(Date#(EndDt,'DD-MMM-YY')&amp;lt;Date#(StartDt,'DD-MMM-YY'), Incharge2)) as Incharge2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="163767" data-objecttype="1" href="https://community.qlik.com/thread/163767"&gt;https://community.qlik.com/thread/163767&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enames:&lt;/P&gt;&lt;P&gt;Noconcatenate Load * Resident CrTmp;&lt;/P&gt;&lt;P&gt;Drop table CrTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD EMPNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SAL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="163767" data-objecttype="1" href="https://community.qlik.com/thread/163767"&gt;https://community.qlik.com/thread/163767&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join the tabless and and remove Field Field, but I left it in for checking, see also attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848318#M1008835</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-13T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Salary distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848319#M1008836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD EMPNO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Incharge1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Incharge2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[163767.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//If EndDt&amp;lt;StartDt then SAL&amp;nbsp; x amount should go to each Incharge1&amp;nbsp; &amp;amp; Incharge2&lt;/P&gt;&lt;P&gt;//If EndDt is NULL then SAL should go to Ename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load if(EndDt&amp;lt;StartDt,EMPNO) as empno,&lt;/P&gt;&lt;P&gt;if(EndDt&amp;lt;StartDt,Incharge1) as ename,&lt;/P&gt;&lt;P&gt;StartDt,&lt;/P&gt;&lt;P&gt;if(EndDt&amp;lt;StartDt,SAL) as SAL&lt;/P&gt;&lt;P&gt;resident t1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;t3:&lt;/P&gt;&lt;P&gt;load if(EndDt&amp;lt;StartDt,EMPNO) as empno,&lt;/P&gt;&lt;P&gt;if(EndDt&amp;lt;StartDt,Incharge2) as ename,&lt;/P&gt;&lt;P&gt;StartDt,&lt;/P&gt;&lt;P&gt;if(EndDt&amp;lt;StartDt,SAL) as SAL&lt;/P&gt;&lt;P&gt;resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t4:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;if(isnull(EndDt),EMPNO) as empno,&lt;/P&gt;&lt;P&gt;if(isnull(EndDt),Ename) as ename,&lt;/P&gt;&lt;P&gt;StartDt,&lt;/P&gt;&lt;P&gt;if(isnull(EndDt),SAL) as SAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident t1;&lt;/P&gt;&lt;P&gt;drop table t1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Salary-distribution/m-p/848319#M1008836</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-05-13T09:55:48Z</dc:date>
    </item>
  </channel>
</rss>

