<?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: Total Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Expression/m-p/362924#M574124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be helpful if you tell us what exactely doesn't work, i.e. what you get and what you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume if you select in a field connected to Year, but not in Year, you still get a filtering of the records because of the p() function, while you expect to see the total unfiltered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating an alternate state (settings - document properties - alternate states), call it e.g. AS, then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({AS&amp;lt;Year=$::Year,Month=$::Month&amp;gt;} Total Amount)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 12:24:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-07-23T12:24:38Z</dc:date>
    <item>
      <title>Total Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Expression/m-p/362923#M574123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem, I need to calculate total of a specific measure regardless selections except Year and Month, that mean the total depend&amp;nbsp; on the time&lt;/P&gt;&lt;P&gt;I used the following expression but it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Year=P(Year),Month=P(Month)&amp;gt;} Total Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please it's urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yousef Amarneh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 11:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Expression/m-p/362923#M574123</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2012-07-23T11:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Expression/m-p/362924#M574124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be helpful if you tell us what exactely doesn't work, i.e. what you get and what you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume if you select in a field connected to Year, but not in Year, you still get a filtering of the records because of the p() function, while you expect to see the total unfiltered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating an alternate state (settings - document properties - alternate states), call it e.g. AS, then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({AS&amp;lt;Year=$::Year,Month=$::Month&amp;gt;} Total Amount)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 12:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Expression/m-p/362924#M574124</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-23T12:24:38Z</dc:date>
    </item>
  </channel>
</rss>

