<?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: Current week v.s. different week previous year comparison (same number of days) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128756#M521497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because business users would like to compare sales amount for an even number of days, so if there are only four days of sales in analysis week, I need to show te amount of sales of four days in the comparions week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 14:45:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-07T14:45:00Z</dc:date>
    <item>
      <title>Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128752#M521493</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;I would like to show sales data for each store comparing one week&amp;nbsp; to a different week in the previous year, provided that the end user can select weeks he want to compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My model is quite simple, main fact table and two calendars (islands):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="model.JPG" class="jive-image image-1" height="281" src="https://community.qlik.com/legacyfs/online/126881_model.JPG" style="height: 281.197px; width: 283px;" width="283" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm not able to implement is the following part of the requirement: if the first week selected is the current one, i.e. only monday to tuesday data available since today is wednesday, I need to show sales for the other week up to tuesday and not the whole 7 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, there can be situations in which for store A I have monday and tuesday data, for store B only monday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with set analysis but I'm stuck on the point where sets are calculated once per chart, so I cannot show someting like this&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="76.4" style="border: 1px solid rgb(0, 0, 0); width: 384.4px; height: 78.4px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Store&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; color: rgb(255, 255, 255); padding: 2px; background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;Sale No. Current Week&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales No. Previous Week&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 08:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128752#M521493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-05T08:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128753#M521494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 14:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128753#M521494</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-05T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128754#M521495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find qvw file and source xls atteched.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you take a look at the picture below, you'll se that in chart "Sales", 2015 column shows 7 for both "A" and "B" shop while I need to get 5 and 4 respectively.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="sales.JPG" class="jive-image image-1" height="325" src="https://community.qlik.com/legacyfs/online/126997_sales.JPG" width="621" /&gt; !&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is because I can't find a way, provided that it's not so easy to modify source data (very large data set with consolidated data I cannot reload from legacy systems), to complete the set analysis&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=count({$&amp;lt;WeekFull={"$(settConf)"}&amp;gt;} Date) to take into account that number of days of compare week should be different for dimension Shop.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards and thanks for your support.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 21:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128754#M521495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T21:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128755#M521496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If you take a look at the picture below, you'll se that in chart "Sales", 2015 column shows 7 for both "A" and "B" shop while &lt;STRONG&gt;I need to get 5 and 4 respectively&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why? Your data contains 7 records for the week 22 - 25/05/2015 for A and also 7 records for B. The expression returns the correct result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 14:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128755#M521496</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-07T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128756#M521497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because business users would like to compare sales amount for an even number of days, so if there are only four days of sales in analysis week, I need to show te amount of sales of four days in the comparions week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 14:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128756#M521497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T14:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128757#M521498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then don't select a week, but select the days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 15:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128757#M521498</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-07T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128758#M521501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're partially right but this is not feasible: business users select one week, all the "magic" needs to happen in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partially beacuse selecting days is not enough since, number of sales days is related to single shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that set analysis is only evaluated once per single chart, just wanted to be sure that some nice trick I'm not aware of would do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 15:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128758#M521501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Current week v.s. different week previous year comparison (same number of days)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128759#M521504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't even understand exactly what the 'magic' should do. If you select two arbitrary weeks and one week may have 4 days and the other 2 days then which days need to be used in each week?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see only one (easy) way out: let the user select the two weeks and then let him/her select the days that should be compared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-v-s-different-week-previous-year-comparison-same/m-p/1128759#M521504</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-08T16:28:05Z</dc:date>
    </item>
  </channel>
</rss>

