<?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 Expression SUM with concatenation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246575#M496463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do u want to show previous year last month ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 12:46:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-22T12:46:07Z</dc:date>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246570#M496457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with my expression.&lt;/P&gt;&lt;P&gt;I try to do a sum, with a concatenation of 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_Year/month] = 01.2011, 02.2011, 03.2011, 04.2011 ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Num_month] = 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_year] = 2008, 2009, 2010, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the volume for the max date that the user have selected.&lt;/P&gt;&lt;P&gt;for example : if he select &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_year] &lt;SPAN style="color: #333333; font-size: 10pt;"&gt;= 2011 and &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Num_month]&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; from 01 to 10, I want to display the volume for&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_Year/month] &lt;SPAN style="color: #333333;"&gt;= 10.2011&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; text-decoration: underline;"&gt;My expression : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_Year/month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;{$(=MaxString([Num_month]))&amp;amp;'.'&amp;amp;[civile_year]}&lt;SPAN style="color: #333333;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Volume)&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;I have try lots of synthaxe like :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[civile_Year/month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;(concat($(=maxstring([Num_month]))&amp;amp;$(=max([civile_year])),'.')}&amp;gt;&lt;SPAN style="color: #333333;"&gt; } Volume)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333;"&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Someone can help me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246570#M496457</guid>
      <dc:creator />
      <dc:date>2011-11-22T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246571#M496458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you make a new field in your script, concatenating them already:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Num_month]&amp;amp;'.'&amp;amp;[civile_year] as MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[civile_Year/month]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;{$(=MaxString(MonthYear)}&lt;SPAN style="color: #333333;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;Volume)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is a bit faster also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Succes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 10:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246571#M496458</guid>
      <dc:creator />
      <dc:date>2011-11-22T10:21:12Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246572#M496459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls try this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Year([civile_Year/month]) &amp;amp;''&amp;amp; num(Month([civile_Year/month]),00) as YearMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({YearMonth={$(=max(YearMonth))}}Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 10:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246572#M496459</guid>
      <dc:creator />
      <dc:date>2011-11-22T10:38:04Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246573#M496460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thanks, it's a good solution for the period acual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can I get the volume for the previous period ? &lt;/P&gt;&lt;P&gt;because, if the user select the year 2011, I display a column with the volume 2011 and another with the volume of&amp;nbsp; previous period 2010. &lt;/P&gt;&lt;P&gt;and this expression don't work :&lt;/P&gt;&lt;P&gt;=sum({YearMonth={$(=max(YearMonth)-1)}}Volume)&lt;/P&gt;&lt;P&gt;because YearMonth = 10.2011! &lt;/P&gt;&lt;P&gt;How can I compute &lt;STRONG&gt;10.2010 &lt;/STRONG&gt;in my expression ?? If I split YearMonth to make a substract it works, but I'm one more time on my initial problem : concatenation in my sum expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246573#M496460</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246574#M496461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by making a extra field:&lt;/P&gt;&lt;P&gt;autonumber(YearMonth) as YearMonthID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it is easy to work with this ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Succes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246574#M496461</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246575#M496463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do u want to show previous year last month ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246575#M496463</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246576#M496464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls try this.....&lt;/P&gt;&lt;P&gt;in script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(([civile_Year/month]),4) &amp;amp; right(([civile_Year/month]),2) as YearMonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246576#M496464</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246577#M496465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246577#M496465</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246578#M496466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;previous year last month should be shown as default or should shown when u select a year ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246578#M496466</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:50:31Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246579#M496467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and when it is january....201201 - 1......= 201200....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why working with an ID is better en easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246579#M496467</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246580#M496468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous year last month must be display when a year and a month are selected. &lt;/P&gt;&lt;P&gt;example : if january 2011 is selected, the data displayed are 1 column with january 2011 and one with january 2010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246580#M496468</guid>
      <dc:creator />
      <dc:date>2011-11-22T12:56:24Z</dc:date>
    </item>
    <item>
      <title>Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246581#M496469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;In script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt; load&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial; min-height: 8pt; height: 8pt;"&gt;left(([civile_Year/month]),4)&amp;nbsp; as Year,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;left(([civile_Year/month]),4) &amp;amp; right(([civile_Year/month]),2) as YearMonth&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;from ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jan 2011 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({Year ={$(=max(Year))},YearMonth={$(=max(YearMonth))}}Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jan 2010 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({Year ={$(=max(Year)-1)},YearMonth={$(=max(YearMonth))}}Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 13:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246581#M496469</guid>
      <dc:creator />
      <dc:date>2011-11-22T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression SUM with concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246582#M496470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works, thanks you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 13:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-SUM-with-concatenation/m-p/246582#M496470</guid>
      <dc:creator />
      <dc:date>2011-11-22T13:38:27Z</dc:date>
    </item>
  </channel>
</rss>

