<?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: List field with date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40299#M785426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - check out this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script uses max function to find out 1st max date,2nd max date etc.&lt;/P&gt;&lt;P&gt;you can change the field names or script, as per your needs.&lt;/P&gt;&lt;P&gt;the same logic applies for your sales date field too.&lt;/P&gt;&lt;P&gt;if you can provide the sample data, it would be good for us to play around with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="195162" alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195162_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2018 11:56:38 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2018-03-02T11:56:38Z</dc:date>
    <item>
      <title>List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40291#M785418</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;I need to display a list with the last 30 dates known. Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 148px; height: 62px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Please select a date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/03/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;28/02/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/02/2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have a date dimension and need to limit this to the last 30 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using an If structure to limit the results but it doesn't work since all dates available is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Date&amp;gt;=(Date-30),Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advise!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40291#M785418</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40292#M785419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If those are 30 dates starting today, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Date &amp;gt;= Today() -30, Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I would create a flag field or a different field in your calendar table and use this in the frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the AsOf table concept: &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40292#M785419</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-03-02T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40293#M785420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If(Date&amp;gt;=&lt;STRONG&gt;$(=Max&lt;/STRONG&gt;(Date)&lt;STRONG&gt;)&lt;/STRONG&gt;-30,Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40293#M785420</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-03-02T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40294#M785421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work. All dates are displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40294#M785421</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-03-02T11:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40295#M785422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date corresponds to sales dates. It's not just a calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40295#M785422</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-03-02T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40296#M785423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your dates real-dates or texts? Could you post a screen shot? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40296#M785423</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-03-02T11:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40297#M785424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dates are texts which is formatted with a Date(Date) function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195158_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40297#M785424</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-03-02T11:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40298#M785425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date() is just a formatting function and it can't convert text into a number/real-date value. Rather use Date#() to parse your date values during load. Then the expression shared above should work fine at the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Date#&lt;/STRONG&gt;(yourTextDateField, 'dateformat &amp;lt;how it looks as text&amp;gt;') as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40298#M785425</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-03-02T11:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: List field with date</title>
      <link>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40299#M785426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - check out this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script uses max function to find out 1st max date,2nd max date etc.&lt;/P&gt;&lt;P&gt;you can change the field names or script, as per your needs.&lt;/P&gt;&lt;P&gt;the same logic applies for your sales date field too.&lt;/P&gt;&lt;P&gt;if you can provide the sample data, it would be good for us to play around with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="195162" alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195162_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-field-with-date/m-p/40299#M785426</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-02T11:56:38Z</dc:date>
    </item>
  </channel>
</rss>

