<?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 Problem with max in set analysis - week value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496248#M185567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart that has the dimension weeks in a month (Week1, Week2, Week3 and Week4), need to get the last value that occurred each week, for that I am using the function below in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num (WeekDay (Table.Date)) + 1 the WeekDay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one case I have the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week 1 - Last Occurrence: Sixth day of the week&lt;/P&gt;&lt;P&gt;Week 2 - Last Occurrence: Seventh day of the week&lt;/P&gt;&lt;P&gt;Week 3 - Last Occurrence: Seventh day of the week&lt;/P&gt;&lt;P&gt;Week 4 - Last Occurrence: Fifth day of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the following formula in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Table.WeekDay= {$(=Max(Tabe.WeekDay))}&amp;gt;} Table.Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this only the values ​​of weeks two and three appears, for these contain values ​​on the seventh day of the week, I need to make it appear weeks 1 and 4, with the values ​​of the sixth and fifth day, respectively, does anyone know how to do this set analysis or otherwise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 20:37:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-07T20:37:02Z</dc:date>
    <item>
      <title>Problem with max in set analysis - week value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496248#M185567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart that has the dimension weeks in a month (Week1, Week2, Week3 and Week4), need to get the last value that occurred each week, for that I am using the function below in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num (WeekDay (Table.Date)) + 1 the WeekDay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one case I have the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week 1 - Last Occurrence: Sixth day of the week&lt;/P&gt;&lt;P&gt;Week 2 - Last Occurrence: Seventh day of the week&lt;/P&gt;&lt;P&gt;Week 3 - Last Occurrence: Seventh day of the week&lt;/P&gt;&lt;P&gt;Week 4 - Last Occurrence: Fifth day of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the following formula in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Table.WeekDay= {$(=Max(Tabe.WeekDay))}&amp;gt;} Table.Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this only the values ​​of weeks two and three appears, for these contain values ​​on the seventh day of the week, I need to make it appear weeks 1 and 4, with the values ​​of the sixth and fifth day, respectively, does anyone know how to do this set analysis or otherwise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 20:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496248#M185567</guid>
      <dc:creator />
      <dc:date>2013-11-07T20:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with max in set analysis - week value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496249#M185568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to have QlikView evaluate each week separately because the last day of the week is different.&amp;nbsp; Try using Aggr across each week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum({&amp;lt;Table.WeekDay= {$(=Max(Tabe.WeekDay))}&amp;gt;} Table.Value),WeekofMonth))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 21:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496249#M185568</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-11-07T21:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with max in set analysis - week value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496250#M185569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still show only the week 2 and 3 with Aggr... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 12:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496250#M185569</guid>
      <dc:creator />
      <dc:date>2013-11-08T12:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with max in set analysis - week value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496251#M185570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have only one value per day you can try this: firstsortedvalue(Table.Value,-Table.Weekday)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 15:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496251#M185570</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-08T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with max in set analysis - week value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496252#M185571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no value appears with this function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 15:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-max-in-set-analysis-week-value/m-p/496252#M185571</guid>
      <dc:creator />
      <dc:date>2013-11-11T15:03:41Z</dc:date>
    </item>
  </channel>
</rss>

