<?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: Creating a Light Graph with dates expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040966#M927538</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;maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic1.JPG" class="jive-image image-1" height="303" src="https://community.qlik.com/legacyfs/online/118873_QlikCommunity_Thread_210382_Pic1.JPG" style="height: 303.333px; width: 379px;" width="379" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic2.JPG" class="jive-image image-2" height="304" src="https://community.qlik.com/legacyfs/online/118886_QlikCommunity_Thread_210382_Pic2.JPG" style="height: 303.728px; width: 379px;" width="379" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/118887_QlikCommunity_Thread_210382_Pic3.JPG" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 23:02:11 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-03-21T23:02:11Z</dc:date>
    <item>
      <title>Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040959#M927531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello eveyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a project where i need create a semaphore graph which alternate the color depending on the results of the conditions below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the "Expected Date" minus today's date is less than 3 months, the light should be green;&lt;/P&gt;&lt;P&gt;2) If the "Expected Date"&amp;nbsp; minus today's date is greater than 3 monhts, the light should be yellow;&lt;/P&gt;&lt;P&gt;3) If the "Expected Date" minus today's date is greter than today's date, the light should be red;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Expected Date" is a date field from my database (i.e 18/03/2018);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I can do subtraction operations using dates on QlikView.&lt;/P&gt;&lt;P&gt;How should be my expression to make this works on QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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/Creating-a-Light-Graph-with-dates-expressions/m-p/1040959#M927531</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040960#M927532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates are dual (meaning they are both text and number) so you can perform subtraction on dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(AddMonths(Today(), -3) - [Expected Date] &amp;lt; 0, Green(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;AddMonths(Today(), -3) - [Expected Date] &amp;gt; 0 and Today() &amp;gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[Expected Date], Yellow(), Red()))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 18:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040960#M927532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-21T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040961#M927533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET DateFormat = 'DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should be able to just subtract dates, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( [Expected Date]- Today() &amp;lt;90, Yellow() )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 18:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040961#M927533</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-21T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040962#M927534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The graph is asking for a Minimum and Max values, what should be added into this propertie?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 18:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040962#M927534</guid>
      <dc:creator />
      <dc:date>2016-03-21T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040963#M927535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which chart are you working with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 18:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040963#M927535</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-21T18:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040964#M927536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rodrigo, I assume you are using a traffic light gauge in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, maybe let the expression return numbers instead of color codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( [Expected Date]- Today() &amp;lt;90, 1, If([Expected Date] &amp;lt;Today() , 3,2 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set min and max to e.g. 0 and 3.&lt;/P&gt;&lt;P&gt;Disable autowidth segments and set lower bound to e.g. 0,2 and 3 for each segment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 19:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040964#M927536</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-21T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040965#M927537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im working with this chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118855_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 19:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040965#M927537</guid>
      <dc:creator />
      <dc:date>2016-03-21T19:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040966#M927538</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;maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic1.JPG" class="jive-image image-1" height="303" src="https://community.qlik.com/legacyfs/online/118873_QlikCommunity_Thread_210382_Pic1.JPG" style="height: 303.333px; width: 379px;" width="379" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic2.JPG" class="jive-image image-2" height="304" src="https://community.qlik.com/legacyfs/online/118886_QlikCommunity_Thread_210382_Pic2.JPG" style="height: 303.728px; width: 379px;" width="379" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210382_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/118887_QlikCommunity_Thread_210382_Pic3.JPG" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 23:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040966#M927538</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-03-21T23:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Light Graph with dates expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040967#M927539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your tip, with that expression the traffic light is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question: How can i turn the light to grey when no filters are applied (E.G when the user click in Clear All filters)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 13:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Light-Graph-with-dates-expressions/m-p/1040967#M927539</guid>
      <dc:creator />
      <dc:date>2016-04-07T13:55:01Z</dc:date>
    </item>
  </channel>
</rss>

