<?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 sales, group by date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922749#M988416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your Date field doesn't contain timestamp values. Merely displaying a timestamp value as a date doesn't make the time part go away. You can check for time fractions by adding a listbox with the Date field and setting the Number representation to for example Fixed with 2 or more decimals. You can use the floor() function in the script to cut of the time fractions of a date field: Floor(Date) as Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 05:39:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-07-31T05:39:16Z</dc:date>
    <item>
      <title>Sum sales, group by date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922747#M988414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a chart with 2 dimensions, and a Date dimension running across the top.&amp;nbsp; The sum of sales is my Expression.&amp;nbsp; Unfortunately, what's happening in my chart is that every Territory is having every Date show up in the chart.&amp;nbsp; The end result is that I have multiple dates when I only really need one.&amp;nbsp; Also, I am restricting the dates to 7 days in the past.&amp;nbsp; My calculated expression for my dates looks like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Date &amp;gt;= today()-7 and Date &amp;lt; today(), Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my busted chart looks like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture5.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94610_Capture5.PNG" style="height: 178px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've highlighted the Dates that I am being terrorized by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 20:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922747#M988414</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-07-30T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum sales, group by date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922748#M988415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of doing that in the dimension do that in set analysis. It best practice. And how to do that is...create a variable&lt;/P&gt;&lt;P&gt;which says =today()-7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your set analysis you can write ====&lt;/P&gt;&lt;P&gt;sum({&amp;lt;datefeild={'&amp;gt;=$(vPYseverdays)'}&amp;gt;} sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 21:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922748#M988415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T21:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum sales, group by date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922749#M988416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your Date field doesn't contain timestamp values. Merely displaying a timestamp value as a date doesn't make the time part go away. You can check for time fractions by adding a listbox with the Date field and setting the Number representation to for example Fixed with 2 or more decimals. You can use the floor() function in the script to cut of the time fractions of a date field: Floor(Date) as Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 05:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-group-by-date/m-p/922749#M988416</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-31T05:39:16Z</dc:date>
    </item>
  </channel>
</rss>

