<?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: Master Calendar + Previous Day Balance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977390#M947132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It gives a red under line in the bold area below and upon selection of any date in calendar it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value is 0 whenever I select a date in history.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Num(sum({&amp;lt;UPDATE_DATE_CPS_FULL={'$(=MAX({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UPDATE_DATE_CPS_FULL={'&amp;lt;$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(UPDATE_DATE_CPS_FULL)&lt;/SPAN&gt;)&lt;STRONG&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;gt;}UPDATE_DATE_CPS_FULL))'},&lt;/STRONG&gt;Type ={'Financing - Funded'},FLAG = {'CORP'}&amp;gt;}BALANCE_CPS_FULL)/1000000,'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2015 06:37:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-28T06:37:09Z</dc:date>
    <item>
      <title>Master Calendar + Previous Day Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977388#M947130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem when using the master calendar in QlikView. In the database, I have one date field, 'update_date_cps_full'. I have used this field in the master calendar. In Set analysis, I want the latest date balance and previous date balance. Since Sunday is not a working day, I are removed it from my calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression (mentioned below) works fine for current date balance and previous date balance when there is no selection of date, but whenever I select a date in history, the current balance shows correctly but the previous day balance disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Date Expression: =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;UPDATE_DATE_CPS_FULL={'$(=MAX(UPDATE_DATE_CPS_FULL))'},Type ={'Financing - Funded'},FLAG = {'CORP'}&amp;gt;}BALANCE_CPS_FULL)/1000000,'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Date Expression: = &lt;/P&gt;&lt;P&gt;=Num(sum({&amp;lt;UPDATE_DATE_CPS_FULL={'$(=MAX(UPDATE_DATE_CPS_FULL,2))'},Type ={'Financing - Funded'},FLAG = {'CORP'}&amp;gt;}BALANCE_CPS_FULL)/1000000,'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I use Max(Date) for current balance and Max(Date,2) from second maximum date which becomes the previous day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On selection of any date and month, the previous day becomes 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice on this issue or is there any other method that I could, perhaps making a variable for previous day balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usama Anwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 07:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977388#M947130</guid>
      <dc:creator />
      <dc:date>2015-12-23T07:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar + Previous Day Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977389#M947131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select one U&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PDATE_DATE_CPS_FULL value there's only one maximum value, i.e. the value you selected. There is no second highest value possible in your selection. Try this expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Num(sum({&amp;lt;UPDATE_DATE_CPS_FULL={'$(=MAX({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UPDATE_DATE_CPS_FULL={'&amp;lt;$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(UPDATE_DATE_CPS_FULL)&lt;/SPAN&gt;)'}&lt;/SPAN&gt;&amp;gt;}UPDATE_DATE_CPS_FULL))'},Type ={'Financing - Funded'},FLAG = {'CORP'}&amp;gt;}BALANCE_CPS_FULL)/1000000,'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 18:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977389#M947131</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-23T18:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar + Previous Day Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977390#M947132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It gives a red under line in the bold area below and upon selection of any date in calendar it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value is 0 whenever I select a date in history.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Num(sum({&amp;lt;UPDATE_DATE_CPS_FULL={'$(=MAX({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UPDATE_DATE_CPS_FULL={'&amp;lt;$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(UPDATE_DATE_CPS_FULL)&lt;/SPAN&gt;)&lt;STRONG&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;gt;}UPDATE_DATE_CPS_FULL))'},&lt;/STRONG&gt;Type ={'Financing - Funded'},FLAG = {'CORP'}&amp;gt;}BALANCE_CPS_FULL)/1000000,'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 06:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Previous-Day-Balance/m-p/977390#M947132</guid>
      <dc:creator />
      <dc:date>2015-12-28T06:37:09Z</dc:date>
    </item>
  </channel>
</rss>

