<?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: Add calculated measure to &amp;quot;Concat/If/Aggr/Rank&amp;quot; function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376344#M31163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, see my updated post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 18:53:10 GMT</pubDate>
    <dc:creator>aurelie_potvin</dc:creator>
    <dc:date>2017-10-06T18:53:10Z</dc:date>
    <item>
      <title>Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376338#M31157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a text box that shows my 3 best product sales increases for a given month compared to the previous month and this for a specific region.&lt;BR /&gt;My calculation is the following : &lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;concat( &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;IF( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aggr( &lt;/P&gt;&lt;P&gt;Rank(&lt;/P&gt;&lt;P&gt;(Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales])-Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales]))),&lt;/P&gt;&lt;P&gt;[Product])&amp;lt;=3, &lt;/P&gt;&lt;P&gt;[Product] &amp;amp; chr(10)))&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine but does not show the increase in sales. &lt;BR /&gt;Any idea how I could show this calculation in &lt;STRONG style="color: #ff0000;"&gt;here&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;[Product] &amp;amp; ' (' &amp;amp; &lt;STRONG style="color: #ff0000;"&gt;???&lt;/STRONG&gt; &amp;amp;')' &amp;amp; chr(10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your input!&lt;BR /&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 18:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376338#M31157</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-10-01T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376339#M31158</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;Concat(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Aggr(Rank((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales]))), [Product])&amp;lt;=3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;[Product] &amp;amp; '(' &amp;amp; Aggr((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales])), Product) &amp;amp; ')'), Chr(10))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 22:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376339#M31158</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-01T22:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376340#M31159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, this works.&lt;BR /&gt;And in case my sales would be a %, how can I format it to have it shown as % instead of 0,...... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376340#M31159</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-10-04T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376341#M31160</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Concat(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If(Aggr(Rank((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales]))), [Product])&amp;lt;=3,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;[Product] &amp;amp; '(' &amp;amp; &lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;&lt;/SPAN&gt;Aggr((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales])), Product)&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, '#.#%')&lt;/STRONG&gt; &amp;amp; ')'), Chr(10))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 23:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376341#M31160</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-04T23:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376342#M31161</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;Your suggestion worked fine although there is a small mistake in your formula.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Concat(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If(Aggr(Rank((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales]))), [Product])&amp;lt;=3,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;[Product] &amp;amp; '(' &amp;amp; &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;&lt;/SPAN&gt;Aggr((Avg({$&amp;lt;[Region]={"A"}&amp;gt;}[Sales]) - Avg({$&amp;lt;[Region]={"A"}, Month = {"$(=Date(AddMonths(Month, -1), 'MMM-yy'))"}&amp;gt;} [Sales])), Product)&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;, '#.#%')&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;amp; ')'), Chr(10))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you can adapt your post, I can mark it as "correct". &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks again!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Sorry for the autocorrect on your name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376342#M31161</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-10-06T18:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376343#M31162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Name is Sunny.... I am glad you were able to get it fixed.... Please close the thread by marking the correct and helpful responses.&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>Fri, 06 Oct 2017 18:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376343#M31162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-06T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376344#M31163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, see my updated post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376344#M31163</guid>
      <dc:creator>aurelie_potvin</dc:creator>
      <dc:date>2017-10-06T18:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated measure to "Concat/If/Aggr/Rank" function</title>
      <link>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376345#M31164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure &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, 06 Oct 2017 18:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-calculated-measure-to-quot-Concat-If-Aggr-Rank-quot-function/m-p/1376345#M31164</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-06T18:56:03Z</dc:date>
    </item>
  </channel>
</rss>

