<?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: While condition in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111665#M904359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using partial sums, I can show the sum of each individual month. I need a column called Total where it sums all the months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2016 16:21:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-24T16:21:31Z</dc:date>
    <item>
      <title>While condition in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111662#M904356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two columns called Months and values as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Months&amp;nbsp; values&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;----------&amp;nbsp; ----------&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing expressions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jan:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(Months='Jan', sum (values)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feb:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(Months='Feb', sum (values)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(Months='Mar', sum (values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total:&lt;/P&gt;&lt;P&gt;[Jan] + [Feb] + [Mar]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we move forward, the Months field also adds values for Apr, May...Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write an expression in &lt;STRONG&gt;Total &lt;/STRONG&gt;so that as Months get added, the total gets updated. I am currently doing a manual sum of each month column to get this Total. ([Jan] + [Feb] + [Mar])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111662#M904356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: While condition in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111663#M904357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using multiple expressions, why don't you use a pivot table where Month is your pivoted dimension. Once you do this, you can very easily use partial sums to show the sum of all the months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 16:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111663#M904357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-24T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: While condition in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111664#M904358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you plan to use these expressions? In a pivot/straight table, you will will get new months displayed automatically as this is standard behavior in QlikView. On the other hand, concat() can be used to do exactly what you want, but that may be overkill. Care to share a few more details about what you'ld like to display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 16:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111664#M904358</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-06-24T16:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: While condition in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111665#M904359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using partial sums, I can show the sum of each individual month. I need a column called Total where it sums all the months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 16:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111665#M904359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-24T16:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: While condition in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111666#M904360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a way to show the partial sum for all the months. Would you be able to share some sample data to demonstrate what I mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 16:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/While-condition-in-Expression/m-p/1111666#M904360</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-24T16:28:21Z</dc:date>
    </item>
  </channel>
</rss>

