<?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 Urgently Needed....Expression in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Urgently-Needed-Expression-in-Pivot-Table/m-p/692475#M1072478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having following fields: EmpName, LeaveMonth, Total_CasualLeave, Total_SickLeave(Predefined), LeaveCode, LeaveDays etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to generate a Report(Need_To_Achieve Sample is attached) which will show a leave balance of a employee on daily basis.&lt;/P&gt;&lt;P&gt;I have calculated following fields:&lt;/P&gt;&lt;P&gt;Accumulated CasualLeave= sum(Total_CasualLeave), same for rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL Accrued= if(LeaveCode='CL', sum(LeaveDays), '0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing CL Balance= sum(Total_CasualLeave) - if(LeaveCode='CL', sum(LeaveDays), '0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want, my new daily transaction shuold start with the Closing Balance because if some body taking a leave then it will be deducted from the Accumulated Leave Balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview, so do not know which function I should use at expression level or script level to achieve this in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Aug 2014 09:43:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-17T09:43:44Z</dc:date>
    <item>
      <title>Urgently Needed....Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Urgently-Needed-Expression-in-Pivot-Table/m-p/692475#M1072478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having following fields: EmpName, LeaveMonth, Total_CasualLeave, Total_SickLeave(Predefined), LeaveCode, LeaveDays etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to generate a Report(Need_To_Achieve Sample is attached) which will show a leave balance of a employee on daily basis.&lt;/P&gt;&lt;P&gt;I have calculated following fields:&lt;/P&gt;&lt;P&gt;Accumulated CasualLeave= sum(Total_CasualLeave), same for rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL Accrued= if(LeaveCode='CL', sum(LeaveDays), '0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing CL Balance= sum(Total_CasualLeave) - if(LeaveCode='CL', sum(LeaveDays), '0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want, my new daily transaction shuold start with the Closing Balance because if some body taking a leave then it will be deducted from the Accumulated Leave Balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview, so do not know which function I should use at expression level or script level to achieve this in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Aug 2014 09:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Urgently-Needed-Expression-in-Pivot-Table/m-p/692475#M1072478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-17T09:43:44Z</dc:date>
    </item>
  </channel>
</rss>

