<?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: Resetting Running Total Field value based on other fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235785#M393112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding FGrp# to the key should not be a problem. In fact I think its a great idea.... Let me test it out and get back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 14:48:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-08T14:48:29Z</dc:date>
    <item>
      <title>Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235781#M393108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are doing great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In below screenshot, I have Rank field, which needs to be corrected. Currently it is showing RowNo for each record. I want it to populate it based on below condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- It should start with 1 for each &lt;EM&gt;FGrp#&lt;/EM&gt;, increment by one for each &lt;EM&gt;Sales&lt;/EM&gt; value (Sales in descending order i.e. Highest sales in given region will listed first in the list)&lt;/P&gt;&lt;P&gt;- If there are same &lt;EM&gt;Sales&lt;/EM&gt; values in given &lt;EM&gt;FGrp#&lt;/EM&gt; then same Rank values needs to be assigned to both the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Present Situation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RunningTotal.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152446_RunningTotal.PNG" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attached application, sample data and expected result sheet for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your affirmative response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235781#M393108</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-08T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235782#M393109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There must be a way to rank it but I can't seem to get the syntax right for some reason&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14865614571176468" jivemacro_uid="_14865614571176468"&gt;
&lt;P&gt;aggr(rank( Sum( Sales)),FGrp#,NHBCust)&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235782#M393109</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-02-08T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235783#M393110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Rank(Sum(Sales), 1), FGrp#, Key)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Key is created in the script like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SampleData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Rgn, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepName, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FGrp#, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SDWACT#, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NHBCust, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SysCust, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ship, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustName, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; State, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(Ship&amp;amp;City&amp;amp;State&amp;amp;SysCust) as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SalesData.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235783#M393110</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235784#M393111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gah I tried that (using a hidden calculated dimension) but my issue was I added FGrp# in the key as well, so dumb!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235784#M393111</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-02-08T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235785#M393112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding FGrp# to the key should not be a problem. In fact I think its a great idea.... Let me test it out and get back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235785#M393112</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235786#M393113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it works still... check out the attachement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235786#M393113</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235787#M393114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Many thanks Sunny and Adam for becoming my saviors.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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;Solution provided by you worked well for single table model. However, It is killing me with &lt;/SPAN&gt;dimensional&lt;SPAN style="font-size: 10pt;"&gt; model (I am implementing it with trial &amp;amp; error method). &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Attached is the sample application file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 05:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235787#M393114</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-09T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235788#M393115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be add all your dimension in the key &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(REGION&amp;amp;SALREP&amp;amp;DNAME&amp;amp;FINGRP&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt;SYSCST&lt;/SPAN&gt;&amp;amp;CMNAME&amp;amp;CUSTNO&amp;amp;CITY&amp;amp;STATE) as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235788#M393115</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T10:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235789#M393116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny. I will try it out.&lt;/P&gt;&lt;P&gt;However, while reviewing the earlier solution I found that &lt;STRONG&gt;&lt;EM&gt;Rank&lt;/EM&gt;&lt;/STRONG&gt; field is resetting the values for every &lt;STRONG&gt;&lt;EM&gt;FGrp#&lt;/EM&gt;&lt;/STRONG&gt; and if the &lt;STRONG&gt;&lt;EM&gt;Sales&lt;/EM&gt;&lt;/STRONG&gt; is same then it is retaining the same value; but while doing this it skips the intermediate value. In below given screenshot it is showing &lt;STRONG&gt;&lt;EM&gt;Rank&lt;/EM&gt;&lt;/STRONG&gt; values as 1, 4 &amp;amp; 6 where as it should show 1, 2 &amp;amp; 3.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Issue.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152609_Issue.PNG" style="height: 105px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235789#M393116</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-09T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235790#M393117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For that look at this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-17251"&gt;Continuous Ranking (no missing Rank)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235790#M393117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Running Total Field value based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235791#M393118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you I will have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resetting-Running-Total-Field-value-based-on-other-fields/m-p/1235791#M393118</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-09T12:11:51Z</dc:date>
    </item>
  </channel>
</rss>

