<?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: How to replace GL_CODE=50010 with sTOCK field ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137829#M20096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. Once i have sucessful master SET , i think i owe you dinner when you happen to visit SG or i visit US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 02:39:16 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-05-13T02:39:16Z</dc:date>
    <item>
      <title>How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137822#M20089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;My Table 1 expression work fine :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;Sum(Aggr(RangeSum(&lt;BR /&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month , GL_CODE = {50010}&amp;gt;}[Amount]*1), 0, RowNo()))),&lt;BR /&gt;-Sum({&amp;lt;GL_CODE = {50010}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, GL_CODE = {50010}&amp;gt;}[Amount]*1), YearMonth))), (YearMonth, (NUMERIC, DESCENDING))))&lt;BR /&gt;/Count(distinct YearMonth)&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;I have create a field sTOCK using load script :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;BR /&gt;If([Reporting Code]&amp;gt;=50010 and [Reporting Code]&amp;lt;=50010,'sTOCK') as [sTOCK],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know how to convert the above expression using sTOCK instead of GL_CODE=50010 ?&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 00:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137822#M20089</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-13T00:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137823#M20090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QVF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 00:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137823#M20090</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-13T00:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137824#M20091</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(Aggr(RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month, sTOCK = {'sTOCK'}&amp;gt;}[Amount]*1), 0, RowNo()))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Sum({&amp;lt;sTOCK = {'sTOCK'}&amp;gt;}TOTAL Aggr(Sum({&amp;lt;year, month, sTOCK = {'sTOCK'}&amp;gt;}[Amount]*1), YearMonth))), (YearMonth, (NUMERIC, DESCENDING))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/Count(distinct YearMonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 01:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137824#M20091</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T01:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137825#M20092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 01:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137825#M20092</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-13T01:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137826#M20093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Paul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not happy that you have been asking these easy things over the past few months. I would really like you to spend some time and learn simple set analysis. I see a lot of potential in you, but somehow when you keep asking these easy set analysis questions, I see lack of effort. Don't take me wrong my friend, I am more than happy to help you, but simultaneously, I would also like to see that you are able to grab from what you learn here and make improvements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I don't want to discourage you from posting your questions here, so please continue to post whatever doesn't get resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137826#M20093</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T02:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137827#M20094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i will take your word very seriously and i will stop for a while and try to figure out before i move further. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your patience with me. I am happy that you let me know this , as it is for my own goods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137827#M20094</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-13T02:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137828#M20095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great &lt;/P&gt;&lt;P&gt;And remember we are always here for you my friend &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;Best wishes,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137828#M20095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T02:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137829#M20096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. Once i have sucessful master SET , i think i owe you dinner when you happen to visit SG or i visit US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137829#M20096</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-13T02:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137830#M20097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137830#M20097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T02:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137831#M20098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After i read the doc and i watch the few blog and also video.&amp;nbsp; and i try to use the expression from you on below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For YTD sales expression :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;{$&amp;lt;year = {$(=Max(year)-0)},&lt;/P&gt;&lt;P&gt;month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))},sales = {'*'}&amp;gt;} month))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Break down the above expression into 2 part :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select max year&lt;/P&gt;&lt;P&gt;{$&amp;lt;year = {$(=Max(year)-0)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select max month &lt;/P&gt;&lt;P&gt;month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))},sales = {'*'}&amp;gt;} month))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I further break in to very detail :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i look for below 3 component :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ =&amp;nbsp; Identifiers&lt;/P&gt;&lt;P&gt;&amp;lt; &amp;gt; = Modifier&lt;/P&gt;&lt;P&gt;-0&amp;nbsp; or &amp;lt;5&amp;nbsp; = Operator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$&amp;lt;year =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$(=Max(year)-0)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;, &lt;/P&gt;&lt;P&gt;month = &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"&amp;lt;=$(=Max(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;lt;year=&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$(=Max(year)-0)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;sales = {'*'}&amp;gt;} month))"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i try to add filter SOURCE={TDSPG} before &amp;gt; , i tested it work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am already 30% success in SET. Thank you for your encouragement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 07:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137831#M20098</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-16T07:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace GL_CODE=50010 with sTOCK field ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137832#M20099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Paul - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad my friend that you are making an effort. Let me know if I can be of any help in your learning process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 10:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replace-GL-CODE-50010-with-sTOCK-field/m-p/1137832#M20099</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T10:04:24Z</dc:date>
    </item>
  </channel>
</rss>

