<?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: expression based on a Date Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450162#M568355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use date() insted of timestamp()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date#() instead of timestamp#()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in th above exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create variable in settings-variable overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vdays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=date(date#(PERIOD_END_DATE)-30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ISTEK_ACISTARIHI2&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;={"&amp;gt;=$(vdays)"},&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ISTEK_DURUM={'Açik'}&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;gt;}metric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ur field in date format &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;my exp in timestamp format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;it work for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 12:42:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-20T12:42:52Z</dc:date>
    <item>
      <title>expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450154#M568342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;My below expression is based on today -30 &lt;/P&gt;&lt;P&gt;but I want to based it on my dimension&amp;nbsp; =date(WeekStart(ISTEK_ACISTARIHI2),'DD.MM.YYYY')&lt;/P&gt;&lt;P&gt;İn shortly my dimension - 30 all ı want&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=Count({&amp;lt;ISTEK_ACISTARIHI2 = {"&amp;lt;=$(=Timestamp(Today() - 30, 'DD.MM.YYYY hh:mm:ss'))"},ISTEK_DURUM={'Açik'}&amp;gt;} ISTEK_ACISTARIHI2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450154#M568342</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-20T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450155#M568344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ur field is timestamp format then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp(timestamp#(urdimension)-30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is first convert timestamp filed into numbers and substract with 30 then&lt;/P&gt;&lt;P&gt;it convert it in to timestamp format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=Count({&amp;lt;ISTEK_ACISTARIHI2 = {"&amp;lt;=$(=timestamp(timestamp#(urdimension)-30), 'DD.MM.YYYY hh:mm:ss'))"},ISTEK_DURUM={'Açik'}&amp;gt;} ISTEK_ACISTARIHI2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450155#M568344</guid>
      <dc:creator />
      <dc:date>2012-11-20T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450156#M568346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it didnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450156#M568346</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-20T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450157#M568347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ISTEK_ACISTARIHI2 &lt;/SPAN&gt; format&amp;nbsp; give some&amp;nbsp; values for this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450157#M568347</guid>
      <dc:creator />
      <dc:date>2012-11-20T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450158#M568348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly What do you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450158#M568348</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-20T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450159#M568350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it has another solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i create one variable with expr like&amp;nbsp; &lt;/P&gt;&lt;P&gt;vdays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Timestamp(Timestamp#(PERIOD_END_DATE)-30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;PERIOD_END_DATE={"&amp;gt;=$(vdays)"}&amp;gt;}CR_AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for u use the below expr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ISTEK_ACISTARIHI2&lt;/SPAN&gt;={"&amp;gt;=$(vdays)"},&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ISTEK_DURUM={'Açik'}&lt;/SPAN&gt;&amp;gt;}metric)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 10:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450159#M568350</guid>
      <dc:creator />
      <dc:date>2012-11-20T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450160#M568352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where did you create variable in script side or in where&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 11:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450160#M568352</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-20T11:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450161#M568353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created variable but it does not satisfy date condition&lt;/P&gt;&lt;P&gt;for example 01.01.2012 selected ıt must get 30 days before data from this date but &lt;/P&gt;&lt;P&gt;it does not work in this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 11:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450161#M568353</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-20T11:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: expression based on a Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450162#M568355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use date() insted of timestamp()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date#() instead of timestamp#()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in th above exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create variable in settings-variable overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;vdays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=date(date#(PERIOD_END_DATE)-30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ISTEK_ACISTARIHI2&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;={"&amp;gt;=$(vdays)"},&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ISTEK_DURUM={'Açik'}&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;gt;}metric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ur field in date format &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;my exp in timestamp format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;it work for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 12:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-based-on-a-Date-Field/m-p/450162#M568355</guid>
      <dc:creator />
      <dc:date>2012-11-20T12:42:52Z</dc:date>
    </item>
  </channel>
</rss>

