<?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: Max Possible Date based on Working Day selection, with Alternate States in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376152#M420085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you. Somehow it doesn't work in my script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I use as an expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Segment = {'A', 'L', 'S'}, Year=$::Year, Month=, Quarter=, Working_Day_Of_Month=, actualdate={"&amp;lt;=$(=Date#(max({&amp;lt;Working_Day_Of_Month = P({$}Working_Day_Of_Month)&amp;gt;}actualdate)))"}&amp;gt;}Invoice_Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179913_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to have 01-02-2017 when I select Feb and Working day 1.&lt;/P&gt;&lt;P&gt;I had to change date to date# to recognize the format.&lt;/P&gt;&lt;P&gt;Also I noticed, that if I change the straight table to inherited state it gives the right date 01-02-2017.&lt;/P&gt;&lt;P&gt;So is it possible that syntax is not for alternate state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me here more please?&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>Tue, 17 Oct 2017 11:13:13 GMT</pubDate>
    <dc:creator>retko1985</dc:creator>
    <dc:date>2017-10-17T11:13:13Z</dc:date>
    <item>
      <title>Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376150#M420083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to the attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want in Set Analysis return 1/2/2017 (max white value) when I select Working Day 1. &lt;/P&gt;&lt;P&gt;I am now ignoring Working Days in set analysis, because in the end I want to use it for YTD computation. So If I select February and Working day 1 - it will count all sales for january + 1 day in February.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In model example, when I click Working Day 1, I would expect to see 300 in Sales (100 + 200). The problem is that my code is return last atualdate from all dates,not the white possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that straight table is in Alternate state, so I need syntax for it. (other listboxes are in inherited state).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376150#M420083</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-10-16T14:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376151#M420084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Working_Day=, Actual_Date={"&amp;lt;=$(=Date(max({&amp;lt;Working_Day = P({$}Working_Day)&amp;gt;}Actual_Date)))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376151#M420084</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376152#M420085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you. Somehow it doesn't work in my script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I use as an expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Segment = {'A', 'L', 'S'}, Year=$::Year, Month=, Quarter=, Working_Day_Of_Month=, actualdate={"&amp;lt;=$(=Date#(max({&amp;lt;Working_Day_Of_Month = P({$}Working_Day_Of_Month)&amp;gt;}actualdate)))"}&amp;gt;}Invoice_Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179913_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to have 01-02-2017 when I select Feb and Working day 1.&lt;/P&gt;&lt;P&gt;I had to change date to date# to recognize the format.&lt;/P&gt;&lt;P&gt;Also I noticed, that if I change the straight table to inherited state it gives the right date 01-02-2017.&lt;/P&gt;&lt;P&gt;So is it possible that syntax is not for alternate state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me here more please?&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>Tue, 17 Oct 2017 11:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376152#M420085</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-10-17T11:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376153#M420086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working_Day_Of_Month filter is in the inherited state or default state?? Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376153#M420086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T11:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376154#M420087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working_Day_Of_Month is in inherited state. This picture is from original application, which I cant share, but it is weird, since in the one I shared before it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376154#M420087</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-10-17T11:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376155#M420088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Segment = {'A', 'L', 'S'}, Year=$::Year, Month=, Quarter=, Working_Day_Of_Month=, actualdate={"&amp;lt;=$(=Date#(max({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;actualdate&lt;/SPAN&gt;= P({$}&lt;SPAN style="color: #ff0000;"&gt;actualdate&lt;/SPAN&gt;)&amp;gt;}actualdate)))"}&amp;gt;}Invoice_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376155#M420088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376156#M420089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Segment = {'A', 'L', 'S'}, Year=$::Year, Month=, Quarter=, Working_Day_Of_Month=, actualdate={"&amp;lt;=$(=Date#(max({&amp;lt;Working_Day_Of_Month = P({$}Working_Day_Of_Month)&lt;SPAN style="color: #ff0000;"&gt;, Month = P({$} Month)&lt;/SPAN&gt;&amp;gt;}actualdate)))"}&amp;gt;}Invoice_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376156#M420089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T11:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Max Possible Date based on Working Day selection, with Alternate States</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376157#M420090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works like a charm &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very much appreciate.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Possible-Date-based-on-Working-Day-selection-with-Alternate/m-p/1376157#M420090</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-10-17T12:07:24Z</dc:date>
    </item>
  </channel>
</rss>

