<?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: Value selected week and same week last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372615#M1176035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make sure you only have selected one year ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 09:59:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-31T09:59:48Z</dc:date>
    <item>
      <title>Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372611#M1176031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick question, what is the best way to get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User select 201230(2012 week 30) you show the sum from all sold products in that week, and from the same week &lt;STRONG&gt;last year&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;They insert it now, by hand, in Excel next to each other in a table, but it seems to me that's difficult to do it in a table in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 09:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372611#M1176031</guid>
      <dc:creator />
      <dc:date>2012-05-29T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372612#M1176032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not so hard. If you have a calendar with fields : Year and Week&lt;/P&gt;&lt;P&gt;With this expression you get the current week but year - 1 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 11:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372612#M1176032</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-05-29T11:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372613#M1176033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks it worked, but what does only() mean? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what if i want to show, if the user choose 17, the sum till week 17 that year?&lt;/P&gt;&lt;P&gt;With the help in f1 about set analyse i can't get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 09:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372613#M1176033</guid>
      <dc:creator />
      <dc:date>2012-05-31T09:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372614#M1176034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only functions returns a value if there is only one distinct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only(Customer) in this case will return null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only(Customer) in this case will return the value 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice document about set analysis that explains it quite nice: &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/previewBody/1867-102-1-1858/QlikLearn-Set-Analysis-Presentation.pdf"&gt;/servlet/JiveServlet/previewBody/1867-102-1-1858/QlikLearn-Set-Analysis-Presentation.pdf&lt;/A&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1867"&gt;http://community.qlik.com/docs/DOC-1867&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 09:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372614#M1176034</guid>
      <dc:creator />
      <dc:date>2012-05-31T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372615#M1176035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make sure you only have selected one year ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372615#M1176035</guid>
      <dc:creator />
      <dc:date>2012-05-31T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372616#M1176036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other way around: Only returns the year if you have only selected one distinct year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 10:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372616#M1176036</guid>
      <dc:creator />
      <dc:date>2012-05-31T10:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372617#M1176037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and could you tell me how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to show, if the user choose 17, the sum till week 17 that year?&lt;/P&gt;&lt;P&gt;With the help in f1 about set analyse i can't get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 10:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372617#M1176037</guid>
      <dc:creator />
      <dc:date>2012-05-31T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Value selected week and same week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372618#M1176038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use only() if the user has selected a year, or Max() if more than one year is selected. With Max(), the set analysis uses automaticaly the highter year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To cumulate, use this set analysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Week={"&amp;lt;=$(=Max(Week))"},&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Year={$(=Max(Year))}&lt;/SPAN&gt;=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the sum from week 1 to 13 for the selected year or the highter year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 10:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-selected-week-and-same-week-last-year/m-p/372618#M1176038</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-05-31T10:35:37Z</dc:date>
    </item>
  </channel>
</rss>

