<?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 Force month of a complex variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Force-month-of-a-complex-variable/m-p/513991#M555534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would first like to congratulate you for the splendid forum and professionalism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a complex variable, with sums and if inside, I wanted to know how to force the date since this classic with set analysis is not taken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$v_sales = if ((cal_yyyy) = Year (Today ()) -1, sum($(sales_ytd), count($(sales_y))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;if ((cal_yyyy) = Year (Today ()) -1, count ($(contra_ytd), count($(contra_y))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum( {&amp;lt; Month={'JAN'} &amp;gt;} $v_Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this example, when I select a month I only ever returns the sum of the month, if you select more months, the sum is accumulated,&lt;/P&gt;&lt;P&gt;what I want is to set the sum to one month of the variable,possibly ignoring other selections or more selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, and I apologize for my bad English.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 15:23:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-23T15:23:48Z</dc:date>
    <item>
      <title>Force month of a complex variable</title>
      <link>https://community.qlik.com/t5/QlikView/Force-month-of-a-complex-variable/m-p/513991#M555534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would first like to congratulate you for the splendid forum and professionalism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a complex variable, with sums and if inside, I wanted to know how to force the date since this classic with set analysis is not taken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$v_sales = if ((cal_yyyy) = Year (Today ()) -1, sum($(sales_ytd), count($(sales_y))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;if ((cal_yyyy) = Year (Today ()) -1, count ($(contra_ytd), count($(contra_y))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum( {&amp;lt; Month={'JAN'} &amp;gt;} $v_Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this example, when I select a month I only ever returns the sum of the month, if you select more months, the sum is accumulated,&lt;/P&gt;&lt;P&gt;what I want is to set the sum to one month of the variable,possibly ignoring other selections or more selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, and I apologize for my bad English.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Force-month-of-a-complex-variable/m-p/513991#M555534</guid>
      <dc:creator />
      <dc:date>2013-07-23T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

