<?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: Sum with Set expression issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-Set-expression-issues/m-p/1810639#M1212581</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Make sure the formats of both dates i.e Date field in your table and Today() field should be in same formats and the expression you mentioned should work.&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 08:54:20 GMT</pubDate>
    <dc:creator>Maheshwar</dc:creator>
    <dc:date>2021-05-26T08:54:20Z</dc:date>
    <item>
      <title>Sum with Set expression issues</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Set-expression-issues/m-p/1810559#M1212570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having 2 tables. One is master_calendar. Another is Fact table - Sales.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;FIELDS IN TABLES&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Master calendar = DATE, DAY, MONTH, YEAR, YEARMONTH, PREVIOUS7DAYFLAG.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Fact table Sales = SOURCE, DATE, CUSTOMER, REGION, SALES&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;DATE is the field which connects Fact &amp;amp; Master Calendar Table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;In script PREVIOUS7DAYFLAG IS WRITTEN AS: If(%Date &amp;gt;= (Today()-7) and %Date &amp;lt; Today(), 1, 0) as&amp;nbsp;PREVIOUS7DAYFLAG &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;SOURCE Field consist of data: Ordered , Invoiced&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Requirement: Need to calculate Sum of Source - Ordered for last 7 days.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried with set expression : Sum({&amp;lt;Source={'Ordered'},Previous7DaysFlag={'1'}&amp;gt;}Sales). This is not working. Kindly help me to find out the correct expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 04:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Set-expression-issues/m-p/1810559#M1212570</guid>
      <dc:creator>kiru_18</dc:creator>
      <dc:date>2021-05-26T04:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with Set expression issues</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-Set-expression-issues/m-p/1810639#M1212581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Make sure the formats of both dates i.e Date field in your table and Today() field should be in same formats and the expression you mentioned should work.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 08:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-Set-expression-issues/m-p/1810639#M1212581</guid>
      <dc:creator>Maheshwar</dc:creator>
      <dc:date>2021-05-26T08:54:20Z</dc:date>
    </item>
  </channel>
</rss>

