<?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 Variables to drive charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271224#M101685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Magnus,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Normally I did an rowno() as Week AutoGenerate 52; to generate 1-52 numbers for weeks to make it work previously, but I am still not able to understand how to use it here... rowno() Autogenerate ??? , but whats the max limit here???I mean I want the date till today()... is that what I need to apply here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am trying to use the History_Date as the field for a variables $(vHistoryDateFrom) and $(vHistoryDateTo) I have created and getting the dates using Calendar object, but the chart doesnt seem to work with the selections in 2 variables..and below expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = {'&amp;gt;=$(vHistory_DateFrom)&amp;lt;=$(vHistory_DateTo)'} &amp;gt;}distinct dim_opportunity.crm_opportunity_id) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 13:46:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-11T13:46:17Z</dc:date>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271222#M101683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dates to variables question. I have date Dimension field called History_Date in the format of DD/MM/YYYY. I want to create 2 variables History_Date_From and History_Date_To, so that a end user makes a selection of 2 dates, then the chart should calculate the sum(sales). Earlier I have done something similar using AutoGenerate function for just weeks... but here its a full date format, so a bit confused as to how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are welcom and Thanks in advance&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 12:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271222#M101683</guid>
      <dc:creator />
      <dc:date>2011-07-11T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271223#M101684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mady.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the same logic on full dates.&lt;/P&gt;&lt;P&gt;In QlikView dates are represented by integers.&lt;/P&gt;&lt;P&gt;So what you in you GUI see as 03/04/2011 is actually stored as for example 40244.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script you can do:&lt;/P&gt;&lt;P&gt;num('03/04/2011') and you will get the corresponding number.&lt;/P&gt;&lt;P&gt;Also, you can do date(40244) and you will get the corresponding date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you can do autogenerate from minDate to maxDate the same way as you did with weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;Load Date($(vStartDate)+(Iterno()-1),'DD/MM/YYYY') as Date&lt;/P&gt;&lt;P&gt;Autogenerate 1&lt;/P&gt;&lt;P&gt;While Date($(vStartDate)+(Iterno()-1)) &amp;lt;=Date($(vEndDate));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271223#M101684</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-11T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271224#M101685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Magnus,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Normally I did an rowno() as Week AutoGenerate 52; to generate 1-52 numbers for weeks to make it work previously, but I am still not able to understand how to use it here... rowno() Autogenerate ??? , but whats the max limit here???I mean I want the date till today()... is that what I need to apply here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am trying to use the History_Date as the field for a variables $(vHistoryDateFrom) and $(vHistoryDateTo) I have created and getting the dates using Calendar object, but the chart doesnt seem to work with the selections in 2 variables..and below expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = {'&amp;gt;=$(vHistory_DateFrom)&amp;lt;=$(vHistory_DateTo)'} &amp;gt;}distinct dim_opportunity.crm_opportunity_id) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271224#M101685</guid>
      <dc:creator />
      <dc:date>2011-07-11T13:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271225#M101686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Mady.&lt;/P&gt;&lt;P&gt;Don't forget the DOLLAR SIGN EXPANSION when using variables in {set}-analysis.&lt;/P&gt;&lt;P&gt;Else the variables won't be evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do it:&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = {"&amp;gt;=&lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateFrom) &amp;lt;= &lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateTo)" }&amp;gt;} distinct dim_opportunity.crm_opportunity_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271225#M101686</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-11T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271226#M101687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well I am using it already....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was thinking, why wouldnt my variable and chart calculation work as expected?&lt;/P&gt;&lt;P&gt;Here is what I am doing Select Calendar Object -&amp;gt; Variable -&amp;gt; vHistoryDateFrom&amp;nbsp; under min Value = min(History_Date) Max Value = Max(History_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly I am doing another Calendar Object -&amp;gt; Variable -&amp;gt; vHistoryDateTo&amp;nbsp; under min Value = min(History_Date) Max Value = Max(History_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These 2 variables now show the calendar to select dates, which when selected doesnt change...and then I am using the below expression for chart calculation.&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = {"&amp;gt;=&lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateFrom) &amp;lt;= &lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateTo)" }&amp;gt;} distinct dim_opportunity.crm_opportunity_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions and help, if I am doing something wrong here is welcome and appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271226#M101687</guid>
      <dc:creator />
      <dc:date>2011-07-11T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271227#M101688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Mady.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you type.&lt;/P&gt;&lt;P&gt;Under min value: =min(History_Date) including the equal sign.&lt;/P&gt;&lt;P&gt;The variable that changes according to what you select in the calendar object is:&lt;/P&gt;&lt;P&gt;Calendar &amp;gt; General &amp;gt; Data &amp;gt; Variable(s).&lt;/P&gt;&lt;P&gt;The min and max dates are for boundries only, but I'm sure you knew that already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant with dollar sign expansion is that in the code you pasted it said:&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = &lt;STRONG&gt;{'&amp;gt;=$(&lt;/STRONG&gt;vHistory_DateFrom)&lt;STRONG&gt;&amp;lt;=$(&lt;/STRONG&gt;vHistory_DateTo)'} &amp;gt;}distinct dim_opportunity.crm_opportunity_id)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&amp;gt;&amp;gt; Look above, History_Date = {'&amp;lt;$(vHistory_DateFrom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must type like this:&lt;/P&gt;&lt;P&gt;count ({&amp;lt;History_Date = {"&amp;gt;=&lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateFrom) &amp;lt;= &lt;STRONG&gt;$(=&lt;/STRONG&gt;vHistory_DateTo)" }&amp;gt;} distinct dim_opportunity.crm_opportunity_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; You must use History_Date ={"&amp;gt;=$(=vHistory_DateFrom)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double equal signs.&lt;/P&gt;&lt;P&gt;First one is to say field History_Date should equal to bla bla bla.&lt;/P&gt;&lt;P&gt;And the next one after the dollar sign and paranthesis is to evaluate the variable into the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Does this make any sense?&lt;/P&gt;&lt;P&gt;﻿It's quite hard to explain without talking out loud &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Hope you nail it this time, im off now, but will be here again tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271227#M101688</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-11T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271228#M101689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mady and good morning.&lt;/P&gt;&lt;P&gt;Did you solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 07:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271228#M101689</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-12T07:21:25Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271229#M101690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Magnus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I solved the problem to some extent by using the Dimension field for Varible value and it works fine now, but one issue is that, when I clear All, the dates selected in the Calendar Objects for Variable dont clear any ideas why???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again for your time and patience,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 12:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271229#M101690</guid>
      <dc:creator />
      <dc:date>2011-07-12T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271230#M101691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean the variable doesn't clear?&lt;/P&gt;&lt;P&gt;Variables have to be explicitly cleared.&lt;/P&gt;&lt;P&gt;So when you clear all selections, make sure to also reset the variable to your preferred default date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 15:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271230#M101691</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-12T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271231#M101692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes Magnus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to clear off the variables when I select clear ALL and get blank values(not default dates) where I can select the dates again...Is this possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables have to be explicitly cleared...??? Can you explain more about this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 15:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271231#M101692</guid>
      <dc:creator />
      <dc:date>2011-07-12T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Variables to drive charts</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271232#M101693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;Usually when I want to do this, I create a button with a series of actions:&lt;/P&gt;&lt;P&gt;- 1. Clear all or clear certain fields&lt;/P&gt;&lt;P&gt;- 2. set variable vFromDate = (blank)&lt;/P&gt;&lt;P&gt;- 3. set variable vToDate = (blank)&lt;/P&gt;&lt;P&gt;- 4. some other action&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 08:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-to-drive-charts/m-p/271232#M101693</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2011-07-13T08:02:52Z</dc:date>
    </item>
  </channel>
</rss>

