<?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 Can someone help me with this expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308924#M114061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , do you want me to use Date#&amp;nbsp; for the below expression, as I tried for a text box around the variable and it doesnt work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain more please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;Effective_start = {'&amp;lt;=date($(=vHistoryDateTo))'},Effective_end = {'&amp;gt;=date($(=vHistoryDateFrom))'}&amp;gt;}distinct (dim_opportunity.crm_opportunity_id &amp;amp; dim_opportunity.Status))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2011 15:43:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-26T15:43:04Z</dc:date>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308917#M114054</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 2 variables, &lt;STRONG&gt;HistoryDateFrom&lt;/STRONG&gt; and &lt;STRONG&gt;HistoryDateTo&lt;/STRONG&gt;, which store values from a Date field called &lt;STRONG&gt;Effective_Start. &lt;/STRONG&gt;The problem is when I check the variable in a text object it returns as number instead of date and I know in the script I am converting this to date... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a text box if I do =$(vHistoryDateFrom)&amp;nbsp;&amp;nbsp;&amp;nbsp; I Get 40675&lt;/P&gt;&lt;P&gt;But when I do = date($(vHistoryDateFrom))&amp;nbsp;&amp;nbsp; I Get 15/11/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to hardcode it I am writing a below expression which works on some other application and not here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;Effective_start = {'&amp;lt;=date($(=vHistoryDateTo))'},Effective_end = {'&amp;gt;=date($(=vHistoryDateFrom))'}&amp;gt;}distinct (dim_opportunity.crm_opportunity_id &amp;amp; dim_opportunity.Status))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to convert my variables in this expression to date format and then calculate??/&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;P&gt;&lt;/P&gt;&lt;P&gt;Anyone please??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 14:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308917#M114054</guid>
      <dc:creator />
      <dc:date>2011-07-26T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308918#M114055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what i understood from you that you want to count field values between start and end date and these dates are in variables&lt;/P&gt;&lt;P&gt;That's True??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308918#M114055</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308919#M114056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; True, and i have given the situation clearly as well, what I have. Again I want to count something between the selected dates, which show as numbers and I think thats casuing the calculation problems... But when I wrap those variables with Date() they show the correct dates, now i want to use this similar function with Set Analysis expression.&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>Tue, 26 Jul 2011 15:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308919#M114056</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:30:17Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308920#M114057</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;You can work it in below way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a number field&amp;nbsp; for Date Effective_start and Effective_end and use it in your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;Effective_start_num = {'&amp;lt;=($(=vHistoryDateTo))'},Effective_end_num = {'&amp;gt;=($(=vHistoryDateFrom))'}&amp;gt;}distinct (dim_opportunity.crm_opportunity_id &amp;amp; dim_opportunity.Status))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will sort out your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308920#M114057</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-26T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308921#M114058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unsure what you meant by asking me to create a num field for variables? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have my variables as Calendar Objects, where the end user can select dates. What do you want me to try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain a bit in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank again for your time.&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308921#M114058</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308922#M114059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple:&lt;/P&gt;&lt;P&gt;use date#() instead of date()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308922#M114059</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308923#M114060</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;Since you are getting Numberic data from your calendar objects, Create a Number date field at script level like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Effective_start) as Effective_start_num, &lt;/P&gt;&lt;P&gt;Num(Effective_end) as Effective_end_num &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make it easy set analysis caluclation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;Effective_start_num = {'&amp;lt;=($(=vHistoryDateTo))'},Effective_end_num = {'&amp;gt;=($(=vHistoryDateFrom))'}&amp;gt;}distinct (dim_opportunity.crm_opportunity_id &amp;amp; dim_opportunity.Status))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308923#M114060</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-26T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308924#M114061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , do you want me to use Date#&amp;nbsp; for the below expression, as I tried for a text box around the variable and it doesnt work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain more please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;Effective_start = {'&amp;lt;=date($(=vHistoryDateTo))'},Effective_end = {'&amp;gt;=date($(=vHistoryDateFrom))'}&amp;gt;}distinct (dim_opportunity.crm_opportunity_id &amp;amp; dim_opportunity.Status))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308924#M114061</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:43:04Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308925#M114062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Deepak, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked as its hardcoded now, but what do you think was the problem converting the effective_start field to date and using it? I have used it for another app and it worked exactly as I wanted but here I have to stick to the numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain a bit more as to if I have this effective start date linked to any other date which is in number format then would that cause a problem to this?? and also by using the num() can we trust the data what we see is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308925#M114062</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:59:48Z</dc:date>
    </item>
    <item>
      <title>Can someone help me with this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308926#M114063</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;Yes you can trust num and since its a numeric figure , filteration will be slightly faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You issue might be pattern of date format. Check the format of the date. for the variables and date field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I alsways prefer numeric date field as it is easy to manage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 16:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-help-me-with-this-expression/m-p/308926#M114063</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-26T16:58:45Z</dc:date>
    </item>
  </channel>
</rss>

