<?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: Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414325#M611978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the date field in your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 19:29:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-30T19:29:47Z</dc:date>
    <item>
      <title>Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414322#M611975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello fellow Qlikview users.&amp;nbsp; Can someone please help modify my script to be able to calculate remaining obligation expense?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script below calculates the total lease obligation.&amp;nbsp; I want to be able to modify this script so that it would calculate the total remaining lease obligation as of this month or as of today.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}&amp;gt;} Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414322#M611975</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-30T18:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414323#M611976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}&lt;SPAN style="color: #ff0000;"&gt;, Date = {"$(='&amp;gt;=' Date(Today(), 'MM/DD/YYYY'))"}&lt;/SPAN&gt;&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414323#M611976</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-30T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414324#M611977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, it's not recognizing the date.&amp;nbsp; Please see attached.&amp;nbsp; &lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175154_Capture.JPG" style="height: 28px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414324#M611977</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-30T19:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414325#M611978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the date field in your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414325#M611978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-30T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414326#M611979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt feedback!&amp;nbsp; Please see a screenshot.&amp;nbsp; I want to make sure you have all the necessary info.&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175155_Capture.JPG" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414326#M611979</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-30T19:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414327#M611980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you need this based on the ExpenseMonth, is that right? If that is true, do you know if ExpenseMonth is a date field? Meaning it has a underlying Numerical value? How do you create ExpenseMonth in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414327#M611980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-30T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414328#M611981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, My goal is to be able to calculate the remaining expenses as of this month (i.e. 24 month lease.&amp;nbsp; 10 months left.&amp;nbsp; How much is the remaining 10 months of expense equate to as of this month.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script below calculates all of the expenses for the entirety of the lease (i.e. 24 months)&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: 12px;"&gt;(sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}&amp;gt;} Amount))&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExpenseMonth is calculated by taking the right side of the expense column shown above in the above excel sheet and counting 3 characters (i.e Jan, Feb)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps and thank you!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175156_Capture.JPG" style="height: 391px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414328#M611981</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-30T19:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414329#M611982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this can help.&amp;nbsp; I have managed to create the formula below that gives me the total lease expense less this month, this year (meaning it gives me total lease expense minus this month (only one month).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to calculate the remaining lease obligation, maybe you can help me tweak it to be all remaining lease expenses after this month this year (i.e greater than &amp;gt;?)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}&amp;gt;} Amount))-sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}, ExpenseMonth = {$(vThisMonth)}&amp;gt;} if(ExpenseYear = $(vThisYear), Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414329#M611982</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-30T21:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414330#M611983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this table, create a new field like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/175172_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(Date#(Period, 'YYYY - MMM')), 'YYYY-MMM') as &lt;SPAN style="color: #ff0000;"&gt;ExpenseMonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;LocalLeaseTypeExpenses = {Lease}, Expense = {"*"}, &lt;SPAN style="color: #ff0000;"&gt;ExpenseMonthYear&lt;/SPAN&gt; = {"$(='&amp;gt;' Date(Today(), '&lt;SPAN style="color: #ff0000;"&gt;YYYY-MMM&lt;/SPAN&gt;'))"}&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 01:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414330#M611983</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-31T01:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414331#M611984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we are getting closer as it accepted the script but is displaying 0 for the pivot table.&amp;nbsp; Thanks for helping!&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175147_Capture.JPG" style="height: 319px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 03:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414331#M611984</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-31T03:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414332#M611985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to post a screenshot of ExpenseMonthYear field in a list box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414332#M611985</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-31T11:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414333#M611986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, please see attached.&amp;nbsp; It doesn't seem to recognize the formula right after {"*"},&amp;nbsp;&amp;nbsp; which is odd because it doesn't error out the formula in the pivot table (please see above), it just displays a 0.&amp;nbsp; With that being said, the amount in the list box now displays the total of the entire lease (i.e. 24 months or 36 months, etc)&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175272_Capture.JPG" style="height: 113px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414333#M611986</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-08-31T15:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414334#M611987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, I just wanted to follow up and see if there was anything else I may be able to do to correct the script?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414334#M611987</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-09-05T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414335#M611988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe provide what he asked for: "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;a screenshot of ExpenseMonthYear field in a list box object&lt;/EM&gt;&lt;/SPAN&gt;"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414335#M611988</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-05T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414336#M611989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did reply to his request on 8/31/17 with a screenshot and an explanation that it does not seem to recognize the script after {"*"}, (please see above).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is another screenshot.&amp;nbsp; The amount shown for Washington is the total expense for the entire term, not as of this month.&amp;nbsp; Thanks.&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175634_Capture.JPG" style="height: 140px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414336#M611989</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-09-05T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414337#M611990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a field called ExpenseMonthYear in your dashboard? It appears as if you don't.... Did you reload your dashboard after you added ExpenseMonthYear to your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414337#M611990</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T16:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414338#M611991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, I may have not reloaded the data because after reloading, ExpenseMonthYear now became a field.&amp;nbsp; With that being said, even though it recognizes the formula, it does not display the correct response as now it reflects the total expense as 0.&amp;nbsp; Please see attached and thanks for spending so much time on this trying to help me get it right.&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175635_Capture.JPG" style="height: 251px; width: 620px;" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414338#M611991</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-09-05T17:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414339#M611992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and you are 100% sure that there are period values beyond September?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414339#M611992</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414340#M611993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, that is correct.&amp;nbsp; Please see screenshot.&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175653_Capture.JPG" style="height: 603px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414340#M611993</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-09-05T17:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414341#M611994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't really know... would you be able to share your qvw?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1414341#M611994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T17:37:07Z</dc:date>
    </item>
  </channel>
</rss>

