<?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 Help with a date calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413096#M427162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I would like some help with this please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in Chart properties - It is a line chart - works beautifully when I have:the dimension&lt;/P&gt;&lt;P&gt;=date(AppointmentDate, 'www dd/MM/yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;/P&gt;&lt;P&gt;as part of a dashboard I would like to amek the same chart just show a week of data, starting 7 days before today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression below in the Enable conditional box does not work.&lt;/P&gt;&lt;P&gt;date(AppointmentDate) &amp;gt;= date(today()-3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jo Tedesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 01:55:36 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2017-09-26T01:55:36Z</dc:date>
    <item>
      <title>Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413096#M427162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I would like some help with this please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in Chart properties - It is a line chart - works beautifully when I have:the dimension&lt;/P&gt;&lt;P&gt;=date(AppointmentDate, 'www dd/MM/yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;/P&gt;&lt;P&gt;as part of a dashboard I would like to amek the same chart just show a week of data, starting 7 days before today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression below in the Enable conditional box does not work.&lt;/P&gt;&lt;P&gt;date(AppointmentDate) &amp;gt;= date(today()-3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jo Tedesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 01:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413096#M427162</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T01:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413097#M427163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use same in expression as set analysis..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413097#M427163</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T02:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413098#M427164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I write it in the expression using set analysis?&amp;nbsp; I am unsure how to use quotes etc.&lt;/P&gt;&lt;P&gt;date(AppointmentDate) &amp;gt;= date(weekstart(today()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; AppointmentStatus = {'Completed'}&amp;gt;}sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413098#M427164</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T02:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413099#M427165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you want to include this date? What is your actual date format of your AppointmentDate field. &lt;/P&gt;&lt;P&gt;May be like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;({&amp;lt; AppointmentStatus = {'Completed'} , AppointmentDate = {"&amp;gt;= $(Date(WeekStart(Today() -7)))"} &amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413099#M427165</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-26T02:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413100#M427166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Left hand part you can't use calculations. I would prefer in script like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(AppointmentDate) as AppointmentDate // Or may be name changed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Set analysis should be&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;sum({&amp;lt; AppointmentStatus = {'Completed'}, AppointmentDate = {"=AppointmentDate &amp;gt;= date(weekstart(today()))"}&amp;gt;} sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;To make more clear, You can do like below as well&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If(date(AppointmentDate) &amp;gt;= date(weekstart(today())), 1,0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Then analysis should be&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;sum({&amp;lt; AppointmentStatus = {'Completed'}, Flag = {1}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413100#M427166</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T02:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413101#M427167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both&lt;/P&gt;&lt;P&gt;I have used this formula:&lt;/P&gt;&lt;P&gt;=if(AppointmentDate&amp;gt;= date(weekstart(today()-3)),date(AppointmentDate))&lt;/P&gt;&lt;P&gt;I placed it in the&lt;/P&gt;&lt;P&gt;chart properties&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;Edit - Used Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have liked to use it in the set analysis but too complicated - I might try later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413101#M427167</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T03:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413102#M427168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;To make more clear, You can do like below as well&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Where do you put this?&amp;nbsp; Loading script or in the expression?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If(date(AppointmentDate) &amp;gt;= date(weekstart(today())), 1,0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413102#M427168</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T03:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413103#M427169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, I don't like to use calculated dimensions until unless needed and it kills the performance. If you read optimize document from community there you will will get front end optimize tips and first initiate point is the same "Don't use Calculated dimensions"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413103#M427169</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T03:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413104#M427170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413104#M427170</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T03:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413105#M427171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Anil – I am not sure what has happened – I meant to mark your answer as correct, but I hit the wrong button!  Too much multi tasking.  Will you be able to change it?  Or give me instructions how I can change it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413105#M427171</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T03:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413106#M427172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NP, Let it be. But, future&lt;/P&gt;&lt;P&gt;1) Your response got it as mark correct&lt;/P&gt;&lt;P&gt;2) You have to UN-Mark from correct answer first(Ref image attaached) - It's under your correct response&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177707_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3) Then, Mark it as proper flag ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413106#M427172</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T03:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413107#M427173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do this?  Because I marked it as correct – I don’t think I can change it … I wanted to mark your answer as correct – instead I did it to my reply!&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413107#M427173</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-09-26T03:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a date calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413108#M427174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can, Because you are in your control (Credentials is yours)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-date-calculation/m-p/1413108#M427174</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T03:59:58Z</dc:date>
    </item>
  </channel>
</rss>

