<?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 get values of weekend dates for several weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273269#M400264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Need to Display in a bar Chart the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a user selects a week_year field (CW 44 Year 2016), which is also the Dimension in the Chart, and the last 12 weeks from that selected week_year value will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expresion&amp;nbsp; shall Display the value of the lask weekday of the week.&lt;/P&gt;&lt;P&gt;this formula Displays the correct value, but i still Need to Display all past 12 weeks, and for each week, the value of the last weekday, shall be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;( {$&amp;lt; &lt;SPAN style="color: #800000;"&gt;date_weekyear&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;%date_day_index__id&lt;/SPAN&gt; ={'$(=aggr(max(%date_day_index__id),date_weekyear))'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000;"&gt;%date_weekyear__id&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;$(vL.FromWeek)&amp;lt;=$(vL.ToWeek)"&lt;/SPAN&gt;} &amp;gt;}&amp;nbsp; active&lt;SPAN style="color: #800000;"&gt;12_sum&lt;/SPAN&gt;) , &lt;SPAN style="color: #800000;"&gt;date_weekyear&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Note the filter and Dimension is the "date_weekyear" field (in figures as "calendar week")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In the figure, for the CW 44.2016, the value 74.845 is not the value of the last day of that week. I Need to get the last weekday value for the current week for all 12 weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas on how to achieve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="barchart.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145553_barchart.png" style="width: 620px; height: 165px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 18:03:53 GMT</pubDate>
    <dc:creator>felcar2013</dc:creator>
    <dc:date>2016-12-02T18:03:53Z</dc:date>
    <item>
      <title>get values of weekend dates for several weeks</title>
      <link>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273269#M400264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Need to Display in a bar Chart the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a user selects a week_year field (CW 44 Year 2016), which is also the Dimension in the Chart, and the last 12 weeks from that selected week_year value will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expresion&amp;nbsp; shall Display the value of the lask weekday of the week.&lt;/P&gt;&lt;P&gt;this formula Displays the correct value, but i still Need to Display all past 12 weeks, and for each week, the value of the last weekday, shall be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;( {$&amp;lt; &lt;SPAN style="color: #800000;"&gt;date_weekyear&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;%date_day_index__id&lt;/SPAN&gt; ={'$(=aggr(max(%date_day_index__id),date_weekyear))'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000;"&gt;%date_weekyear__id&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;$(vL.FromWeek)&amp;lt;=$(vL.ToWeek)"&lt;/SPAN&gt;} &amp;gt;}&amp;nbsp; active&lt;SPAN style="color: #800000;"&gt;12_sum&lt;/SPAN&gt;) , &lt;SPAN style="color: #800000;"&gt;date_weekyear&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Note the filter and Dimension is the "date_weekyear" field (in figures as "calendar week")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In the figure, for the CW 44.2016, the value 74.845 is not the value of the last day of that week. I Need to get the last weekday value for the current week for all 12 weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas on how to achieve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="barchart.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145553_barchart.png" style="width: 620px; height: 165px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 18:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273269#M400264</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2016-12-02T18:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: get values of weekend dates for several weeks</title>
      <link>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273270#M400265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need Friday's value for the 12 weeks you are seeing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Weekday = {'Fri'},&lt;/SPAN&gt; date_weekyear=, %date_day_index__id ={'$(=aggr(max(%date_day_index__id),date_weekyear))'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;%date_weekyear__id={"&amp;gt;$(vL.FromWeek)&amp;lt;=$(vL.ToWeek)"} &amp;gt;}&amp;nbsp; active12_sum)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Weekday field is created in the script like this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WeekDay(Date) as Weekday&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have also removed the Sum(Aggr()) function as I don't see any need to use that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 18:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273270#M400265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T18:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: get values of weekend dates for several weeks</title>
      <link>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273271#M400266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thanks, i used better an if-condition after sum. Before I got the Weekenddate (&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;%date_weekend_day__id&lt;/STRONG&gt;&lt;/SPAN&gt;) in script. then i got the values for all weeks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;final solution looked like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;( {$&amp;lt; &lt;SPAN style="color: #800000;"&gt;date_weekyear&lt;/SPAN&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000;"&gt;date_weekyear__id&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;$(vL.FromWeek)&amp;lt;=$(vL.ToWeek)"&lt;/SPAN&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; if(&lt;SPAN style="color: #800000;"&gt;%date_day_index__id&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;=%date_weekend_day__id,&lt;/STRONG&gt;&lt;/SPAN&gt; active&lt;SPAN style="color: #800000;"&gt;12_sum&lt;/SPAN&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;IMG alt="act12.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146350_act12.png" style="width: 620px; height: 147px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-values-of-weekend-dates-for-several-weeks/m-p/1273271#M400266</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2016-12-12T12:23:10Z</dc:date>
    </item>
  </channel>
</rss>

