<?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 Link Calendar date with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239564#M90173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL,&lt;BR /&gt;I need you help!&lt;/P&gt;&lt;P&gt;I have expression on chart:&lt;BR /&gt;SUM({ $&amp;lt;CalendarDate = {'&amp;lt;$(vDateOnHand)'} &amp;gt; } QTY), where vDateOnHand is variable.&lt;/P&gt;&lt;P&gt;I have Calendar Object (Standart Calendar taken from examples) with key CalendarDate and transaction table with key CalendarDate.&lt;/P&gt;&lt;P&gt;How I can link Calendar with variable vDateOnHand for building chart with this expression ?&lt;BR /&gt;When I select calendar dates I must see different SUM(QTY), but it doesn't work. WHY?&lt;/P&gt;&lt;P&gt;How I can Calendar Object link with the expression of Set Analysis?&lt;BR /&gt;Or to set selected calendar date to the expression?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;P.S.&lt;BR /&gt;By away, I tried the next&lt;/P&gt;&lt;P&gt;1.On the tab General of Calendar I set option Data-&amp;gt;Field to key CalendarDate&lt;BR /&gt;2.On tab Triggers (Document Proporties) I created Field Event triggers on CalendarDate (both On Select and On Change) - Action Set Variable&lt;BR /&gt; with Variable vDateOnHand and Value CalendarDate.&lt;BR /&gt;But, it doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Oct 2010 09:05:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-17T09:05:06Z</dc:date>
    <item>
      <title>Link Calendar date with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239564#M90173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL,&lt;BR /&gt;I need you help!&lt;/P&gt;&lt;P&gt;I have expression on chart:&lt;BR /&gt;SUM({ $&amp;lt;CalendarDate = {'&amp;lt;$(vDateOnHand)'} &amp;gt; } QTY), where vDateOnHand is variable.&lt;/P&gt;&lt;P&gt;I have Calendar Object (Standart Calendar taken from examples) with key CalendarDate and transaction table with key CalendarDate.&lt;/P&gt;&lt;P&gt;How I can link Calendar with variable vDateOnHand for building chart with this expression ?&lt;BR /&gt;When I select calendar dates I must see different SUM(QTY), but it doesn't work. WHY?&lt;/P&gt;&lt;P&gt;How I can Calendar Object link with the expression of Set Analysis?&lt;BR /&gt;Or to set selected calendar date to the expression?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;P.S.&lt;BR /&gt;By away, I tried the next&lt;/P&gt;&lt;P&gt;1.On the tab General of Calendar I set option Data-&amp;gt;Field to key CalendarDate&lt;BR /&gt;2.On tab Triggers (Document Proporties) I created Field Event triggers on CalendarDate (both On Select and On Change) - Action Set Variable&lt;BR /&gt; with Variable vDateOnHand and Value CalendarDate.&lt;BR /&gt;But, it doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 09:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239564#M90173</guid>
      <dc:creator />
      <dc:date>2010-10-17T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Link Calendar date with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239565#M90174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oleg,&lt;/P&gt;&lt;P&gt;First I'd check if both CalendarDate and vDateOnHand have the same format. One simple workaround for this may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({ $&amp;lt;CalendarDate = {'&amp;lt;$(=&lt;B&gt;Date(&lt;/B&gt;vDateOnHand)&lt;B&gt;)&lt;/B&gt;'} &amp;gt; } QTY)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Having of course that the same Date(CalendarDate) has been used in the master calendar table. Anyway, you can create a new textobject and set a comparison between both variable and field, select one date from field and see whether the comparison matches or not.&lt;/P&gt;&lt;P&gt;Second, if you want the user to select a date, you don't need to se a variable for that, but the field CalendarDate in the Slider/Calendar object. If you do want both dates to be in different places, set the variable in the object and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Min(CalendarDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as minimum value and the corresponding max value, so your users will always select a proper date.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 11:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239565#M90174</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-17T11:07:40Z</dc:date>
    </item>
    <item>
      <title>Link Calendar date with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239566#M90175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel, can you see attachment and to add necessary code? (See expression for QTY )&lt;/P&gt;&lt;P&gt;I would like the user see sum(QTY) before selected date!&lt;/P&gt;&lt;P&gt;Unfortunately I the beginner and I have ver. Personal Edition...&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 11:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239566#M90175</guid>
      <dc:creator />
      <dc:date>2010-10-17T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Link Calendar date with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239567#M90176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oleg,&lt;/P&gt;&lt;P&gt;Certainly, values in variable were stored in QlikView format (34568) and CalendarDate in date format (dd.mm.yyyy) so changing he expression to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({ $&amp;lt;CalendarDate = {'&amp;lt;$(=Date(vDateOnHand))'} &amp;gt; } QTY)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Seems to be working.&lt;/P&gt;&lt;P&gt;Add vDateOnHand in the slider/object calendar and it will work fine.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;PS: I attach you modified file, although my version is not Personal Edition. If you cannot open it, let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 11:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239567#M90176</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-17T11:59:54Z</dc:date>
    </item>
    <item>
      <title>Link Calendar date with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239568#M90177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Miguel&lt;/P&gt;&lt;P&gt;Problems no now! It's fine!!&lt;/P&gt;&lt;P&gt;Regards, Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 13:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Calendar-date-with-variable/m-p/239568#M90177</guid>
      <dc:creator />
      <dc:date>2010-10-17T13:16:27Z</dc:date>
    </item>
  </channel>
</rss>

