<?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 WeekName Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154438#M31058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm probably missing something but using the same expression and setting "WeekNm" as dimension it will display the amount aggregated by week numbers. In a pivot table you can move the dimension to fit horizontal instead of vertical.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 13:08:40 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-01-05T13:08:40Z</dc:date>
    <item>
      <title>WeekName Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154435#M31055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;Hi,&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I've been through the forum posts re Set Analysis and they've helped me solve a problem or two but I can't find an answer to this one re weekname analysis&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I have a Pivot Table Chart that I would like to load only the last 6 weeks worth of data. I load weekname from the Date field in the source files (Date format is DD/MM/YYYY only)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;WeekName ( Date) as Week,&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I use this in the Expression:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;sum({&amp;lt;Week={$(=Week-1)}&amp;gt;} Total_Billable)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;Viewing the table I can see this translates into&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;sum({&amp;lt;Week={40545}&amp;gt;} Total_Billable).&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;But it presents no data in the column&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I have seen this problem before and fixed it (when looking at a similar table for Days) by doing the below:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;sum({&amp;lt;date={'$(=date(date-1,'DD/MM/YYYY'))'}&amp;gt;} Total_Billable)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;But I can't seem to do the same thing for WeekName. As usual it's probably something obvious but I can't seen to achieve it.&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;Can you please suggest how I could get over this&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;Thanks&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154435#M31055</guid>
      <dc:creator />
      <dc:date>2011-01-05T10:00:24Z</dc:date>
    </item>
    <item>
      <title>WeekName Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154436#M31056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;First of all, I'd create a new field in your calendar using Week(Field) to the the number (usually 1-53). That 40545 is the date in numeric value in QlikView, and the result of WeekName() function is a string formatted YYYY/WW so first you will need to format your week field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt; date = {'&amp;gt;=$(=WeekStart(Max(date), -6))'} &amp;gt;} Total_Billable)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Im ay be missing some parentheses. This expression is filtering for dates greater than or equal to the week corresponding to the maximum date loaded (in my example, change as you wish) six weeks backwards.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154436#M31056</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-05T10:39:45Z</dc:date>
    </item>
    <item>
      <title>WeekName Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154437#M31057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel - thanks for the fast reply.&lt;/P&gt;&lt;P&gt;What you have provided works and shows me a total for the last six weeks. but I think I didn't explain my problem correctly.&lt;/P&gt;&lt;P&gt;I was loooking to present Current Week, Week-1, Week-2, Week-3, Week-4, Week-5 as columns. By defining Week( date) as you suggested I am able to get it working for the last several weeks, but not over this year to last year. As I load several years worth of data I've been using WeekName( Date) to show me a weeknumber as YYYY/WW.&lt;/P&gt;&lt;P&gt;Is there a way of using WeekName( Date) which I load (now) as WeekNm to present the current and last 5 weeks. It's that bit that I'm having problems with.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 11:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154437#M31057</guid>
      <dc:creator />
      <dc:date>2011-01-05T11:14:40Z</dc:date>
    </item>
    <item>
      <title>WeekName Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154438#M31058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm probably missing something but using the same expression and setting "WeekNm" as dimension it will display the amount aggregated by week numbers. In a pivot table you can move the dimension to fit horizontal instead of vertical.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekName-Set-Analysis/m-p/154438#M31058</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-05T13:08:40Z</dc:date>
    </item>
  </channel>
</rss>

