<?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: Previous Date Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672301#M50867</link>
    <description>&lt;P&gt;The issue with my previous suggestion was that it was taking the second largest date in the selection. So if you where selecting only one date there where no second largest date in your selection.&amp;nbsp; If you where to select two or more dates it will work as intended.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To meet your need I need to tell the modifier to consider all [ETL Date] smaller than the selected value. A modifier inside the modifier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;only(&lt;FONT color="#3366FF"&gt;{&amp;lt; [ETL Date]={"$(=MAX(&lt;FONT color="#33CCCC"&gt;{&amp;lt;[ETL Date]= {"&amp;lt;=$(=MAX([ETL Date]))"} &amp;gt;}&lt;/FONT&gt;[ETL Date],2))"}&lt;/FONT&gt; &lt;FONT color="#3366FF"&gt;&amp;gt;}&lt;/FONT&gt; [ETL Date])&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 20:57:09 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-02-04T20:57:09Z</dc:date>
    <item>
      <title>Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1669781#M50578</link>
      <description>&lt;P&gt;I have a Extraction Date field but it has no sequence to it. For example I have dates like&lt;/P&gt;&lt;P&gt;05/1/2019&lt;/P&gt;&lt;P&gt;03/1/2019&lt;/P&gt;&lt;P&gt;2/1/2019.&lt;/P&gt;&lt;P&gt;I always want the Max Date and the&amp;nbsp; Previous from Max Date. In this case I need 5/1/2019 and 3/1/2019. I know how to get 5/1/2019 but how will get&amp;nbsp; 3/1/2019.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 20:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1669781#M50578</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-01-27T20:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1669801#M50580</link>
      <description>&lt;P&gt;Use the &lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/max.htm" target="_self"&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Max()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;function with two parameters like I've done in the picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27532iD1D6D5DA3BC006FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 21:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1669801#M50580</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-27T21:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1670196#M50639</link>
      <description>&lt;P&gt;HOw would you use in the set analysis for Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={$(=Max(Date))}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;What to write for Max(Date,2)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 20:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1670196#M50639</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-01-28T20:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1670208#M50643</link>
      <description>&lt;P&gt;I would write it like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=Sum(&lt;STRONG&gt;{&amp;lt;Year={"$(=max(Year,2))"}&amp;gt;}&lt;/STRONG&gt;Sales)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 20:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1670208#M50643</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-28T20:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1671944#M50822</link>
      <description>&lt;P&gt;Your solution works fine if I dont make a selection in ETL Date field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;05/1/2019&lt;/P&gt;&lt;P&gt;03/1/2019&lt;/P&gt;&lt;P&gt;2/1/2019&lt;/P&gt;&lt;P&gt;My expression is below which is good&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[ETL Date]={"$(=MAX([ETL Date],2))"} &amp;gt;} [Amount])&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It gives me the data for 3/1/2019, But If I make a selection in the ETL date field everything blanks out. The requirement is that by default&amp;nbsp; it is going to be 3/1/2019 but If I make a selection as 3/1/2019 this expression will give me the data for 2/1/2019&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I accomplish that ??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 03:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1671944#M50822</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-04T03:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1671995#M50834</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[ETL Date]={'$(=date(Max([ETL Date],2)),'DD/M/YYYY')'} &amp;gt;} [Amount])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 08:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1671995#M50834</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-04T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672202#M50852</link>
      <description>&lt;P&gt;It doesn't work. I don't get anything If I add the below expression&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 15:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672202#M50852</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-04T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672240#M50856</link>
      <description>&lt;P&gt;Could you attach a sample app or sample data ? It will make it easier to troubleshoot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 16:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672240#M50856</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-04T16:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672262#M50860</link>
      <description>&lt;P&gt;Attached please find the sample data.. In this case by default with no selection in the extract date&lt;/P&gt;&lt;P&gt;I would like to calculate the amount for Max(Extract Date) and one previous date&lt;/P&gt;&lt;P&gt;1/25/2020 and 1/20/2020&lt;/P&gt;&lt;P&gt;but if the user selects 1/20/2020 the result will be&amp;nbsp;&lt;/P&gt;&lt;P&gt;1/20/2020 and 1/15/2020&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672262#M50860</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-04T17:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672276#M50865</link>
      <description>&lt;P&gt;Solved it, Created a variable vETL Date as&lt;/P&gt;&lt;P&gt;=Date(If(GetSelectedCount([ETL Date]) &amp;gt;0,&lt;BR /&gt;Aggr(Above(Max({&amp;lt;[ETL Date]&amp;gt;} [ETL Date])), [ETL Date]), Max({&amp;lt;[ETL Date]&amp;gt;}[ETL Date], 2)))&lt;/P&gt;&lt;P&gt;and used that in the expression&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672276#M50865</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-04T18:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672301#M50867</link>
      <description>&lt;P&gt;The issue with my previous suggestion was that it was taking the second largest date in the selection. So if you where selecting only one date there where no second largest date in your selection.&amp;nbsp; If you where to select two or more dates it will work as intended.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To meet your need I need to tell the modifier to consider all [ETL Date] smaller than the selected value. A modifier inside the modifier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;only(&lt;FONT color="#3366FF"&gt;{&amp;lt; [ETL Date]={"$(=MAX(&lt;FONT color="#33CCCC"&gt;{&amp;lt;[ETL Date]= {"&amp;lt;=$(=MAX([ETL Date]))"} &amp;gt;}&lt;/FONT&gt;[ETL Date],2))"}&lt;/FONT&gt; &lt;FONT color="#3366FF"&gt;&amp;gt;}&lt;/FONT&gt; [ETL Date])&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 20:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1672301#M50867</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-04T20:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674161#M51120</link>
      <description>&lt;P&gt;I am currently using the below expression to get the previous date. It works fine if I make a selection in ETL Date Field.&lt;/P&gt;&lt;P&gt;Date(If(GetSelectedCount([ETL Date]) &amp;gt;0,&lt;BR /&gt;Aggr(Above(Max({&amp;lt;[ETL Date]&amp;gt;} [ETL Date])), [ETL Date]),&lt;BR /&gt;Max({&amp;lt;[ETL Date]&amp;gt;}[ETL Date], 2)))&lt;/P&gt;&lt;P&gt;I Created a field called ETL&amp;nbsp; Month from ETL Date . ETL Month is in the format "May 2019". If I select the ETL Month this expression doesnt work . I modified teh expression as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(If(GetSelectedCount([ETL Month]) &amp;gt;0,&lt;BR /&gt;Aggr(Above(Max({&amp;lt;[ETL Date]&amp;gt;} [ETL Date])), [ETL Date]),&lt;BR /&gt;Max({&amp;lt;[ETL Date]&amp;gt;}[ETL Date], 2)))&lt;/P&gt;&lt;P&gt;Any idea what am I doing wrong here ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674161#M51120</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-10T21:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674165#M51121</link>
      <description>&lt;P&gt;Try to expand your set modifiers with the new month fiels. Like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&amp;lt;[ETL Date], [ETL Month]&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 22:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674165#M51121</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-10T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674167#M51122</link>
      <description>&lt;P&gt;Tried it doesn't work, Its not changing the values its staying at the Previous month value no matter what I select in ETL Month&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 22:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674167#M51122</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-10T22:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674176#M51123</link>
      <description>&lt;P&gt;I guess I Spoke too soon, Its working in a variable, but when I use that variable in&amp;nbsp; SET analysis , it does not&amp;nbsp; work. Means by default u see previous ETL month but when you make a selection in ETL month it blanks out&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 22:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674176#M51123</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-02-10T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Date Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674246#M51135</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Date(If(GetSelectedCount([ETL Month])&amp;gt;0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &lt;STRONG&gt;max(&lt;/STRONG&gt;Aggr(Above(Max({&amp;lt;[ETL Date]&lt;STRONG&gt;, [ETL Month]&lt;/STRONG&gt;&amp;gt;} [ETL Date])), [ETL Date])&lt;STRONG&gt;)&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Max({&amp;lt;[ETL Date]&lt;STRONG&gt;, [ETL Month]&lt;/STRONG&gt;&amp;gt;}[ETL Date], 2)))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 08:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Date-Issue/m-p/1674246#M51135</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-11T08:19:11Z</dc:date>
    </item>
  </channel>
</rss>

