<?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 Sales Analysis by Week for Y / Y-1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778150#M718237</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new on Qlik sorry in advance if my question is a silly one; I resume the work of my collegue and I have some questions&lt;/P&gt;&lt;P&gt;I want to have an indicator with a tachymeter that give me the ratio between the sales of the year until the week I want to analyse comparing to the last year for the same period.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I want to select the Year, the Month and the number of the week, and I have the sum of the sales for this period.&lt;/P&gt;&lt;P&gt;I want to compare it with the previous year.&lt;/P&gt;&lt;P&gt;My Data id simple : only One table with : date, number of sale per day.&lt;/P&gt;&lt;P&gt;Option 1 : Add the number of the week into the data set via the expression weekday. But I do not want to touch my qvd.&lt;/P&gt;&lt;P&gt;Option 2 : Add a variable to calculate the number of week. via SET v_WEEDAY = Weekday(Shop.Date,0) and create a selection to choose this variable after choosing a year and a date.&lt;/P&gt;&lt;P&gt;In my dataset I have Shop.DATE_YYYY, DATE_MM, already calculated&lt;/P&gt;&lt;P&gt;But when I do something like this and choose Year shop.DATE_YYYY and Month&amp;nbsp;hop.DATE_MM in my selection box.... I can not retrieve the week number. When I select the entire date (means shop, )&lt;/P&gt;&lt;P&gt;Is it normal ?&lt;/P&gt;&lt;P&gt;Sorry I am new. do you have any question is I was not clear ? Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 17:18:35 GMT</pubDate>
    <dc:creator>Touix</dc:creator>
    <dc:date>2021-01-28T17:18:35Z</dc:date>
    <item>
      <title>Sales Analysis by Week for Y / Y-1</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778150#M718237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new on Qlik sorry in advance if my question is a silly one; I resume the work of my collegue and I have some questions&lt;/P&gt;&lt;P&gt;I want to have an indicator with a tachymeter that give me the ratio between the sales of the year until the week I want to analyse comparing to the last year for the same period.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I want to select the Year, the Month and the number of the week, and I have the sum of the sales for this period.&lt;/P&gt;&lt;P&gt;I want to compare it with the previous year.&lt;/P&gt;&lt;P&gt;My Data id simple : only One table with : date, number of sale per day.&lt;/P&gt;&lt;P&gt;Option 1 : Add the number of the week into the data set via the expression weekday. But I do not want to touch my qvd.&lt;/P&gt;&lt;P&gt;Option 2 : Add a variable to calculate the number of week. via SET v_WEEDAY = Weekday(Shop.Date,0) and create a selection to choose this variable after choosing a year and a date.&lt;/P&gt;&lt;P&gt;In my dataset I have Shop.DATE_YYYY, DATE_MM, already calculated&lt;/P&gt;&lt;P&gt;But when I do something like this and choose Year shop.DATE_YYYY and Month&amp;nbsp;hop.DATE_MM in my selection box.... I can not retrieve the week number. When I select the entire date (means shop, )&lt;/P&gt;&lt;P&gt;Is it normal ?&lt;/P&gt;&lt;P&gt;Sorry I am new. do you have any question is I was not clear ? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 17:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778150#M718237</guid>
      <dc:creator>Touix</dc:creator>
      <dc:date>2021-01-28T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Analysis by Week for Y / Y-1</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778215#M718238</link>
      <description>&lt;P&gt;i would add a week number.&amp;nbsp; so where the week is selected, you can store the week number in a variable.&amp;nbsp; also you can store the year in a variable&lt;BR /&gt;&lt;BR /&gt;in set analysis you can use {&amp;lt;YEAR={$(vSelectedYear)}, WEEKNUMBER={"&amp;lt;=$(SelectedvWeek)"} ...&amp;gt;} for current year&lt;/P&gt;&lt;P&gt;{&amp;lt;YEAR={$(=vSelectedYear-1)}, WEEKNUMBER={"&amp;lt;=$(SelectedvWeek)"} ...&amp;gt;} for prior year&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 18:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778215#M718238</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-28T18:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Analysis by Week for Y / Y-1</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778218#M718239</link>
      <description>&lt;P&gt;you wont need to modify your QVD you can get the week number using the week function on the date, look at the week function as it gives you some option how to configure start of week, etc..&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/week.htm" target="_blank"&gt;week - script and chart function ‒ QlikView&lt;/A&gt;&lt;BR /&gt;add that to your load statement&lt;BR /&gt;&lt;BR /&gt;testing a number is easier that testing for a date and calculating it at the same time&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 18:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Analysis-by-Week-for-Y-Y-1/m-p/1778218#M718239</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-28T18:24:32Z</dc:date>
    </item>
  </channel>
</rss>

