<?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: Set Analysis with Max(Week) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045759#M86016</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Thanks, i had tried that already but still, it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 15:33:37 GMT</pubDate>
    <dc:creator>charlie03</dc:creator>
    <dc:date>2023-03-06T15:33:37Z</dc:date>
    <item>
      <title>Set Analysis with Max(Week)</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045636#M86008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dataset with dates, from which i derive the year-week out of it via the data editor, with the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Weekname(date#(date(Date),'MM/DD/YYYY')) AS week&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this new field, I want to create a calculated field in the front end, depending on the selected week.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far, I have the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;week={"$(=Max(week))"}&amp;gt;} count_request)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The set expression does not work, as I get the following calculation (see attachment), due to the formatting.&lt;/P&gt;
&lt;P&gt;any idea on how to change the formatting?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 280px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102044i9C9C4BD5DD84B7E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045636#M86008</guid>
      <dc:creator>charlie03</dc:creator>
      <dc:date>2023-03-06T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Max(Week)</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045647#M86009</link>
      <description>&lt;P&gt;Apply Date() to the result...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;week={"$(=Date(Max(week)))"}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045647#M86009</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-03-06T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Max(Week)</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045759#M86016</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Thanks, i had tried that already but still, it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 15:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2045759#M86016</guid>
      <dc:creator>charlie03</dc:creator>
      <dc:date>2023-03-06T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Max(Week)</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2046044#M86033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I figured it out myself, with the following formula, by adding the weekname&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;week={"$(=Weekname(Date(Max(week))))"}&amp;gt;} count_request)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 08:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Max-Week/m-p/2046044#M86033</guid>
      <dc:creator>charlie03</dc:creator>
      <dc:date>2023-03-07T08:42:55Z</dc:date>
    </item>
  </channel>
</rss>

