<?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: Problem in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356300#M132227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change your calculated dimension to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But instead of calculating the dimension, you might want to create this one on the script side already when you load the start and end date. Use the same syntax to generate a new dimension value which will improve the performance in the chart calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)]) as DimensionDate&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 02:56:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-18T02:56:47Z</dc:date>
    <item>
      <title>Problem in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356299#M132226</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;I have two columns in the dataset : Date(Start) and Date(End). And I have to print them as Date(Start) - Date(End). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example , if Date(Start) = 10/10/2011 and Date (End) = 10/28/2011 &lt;/P&gt;&lt;P&gt;then the output should be : 10/10/2011 - 10/28/2011 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I used : [Date(Start)] &amp;amp; ' - ' &amp;amp; [Date (end)]. &lt;/P&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="304" id="QlikOCX" width="470"&gt; &lt;PARAM name="DocName" value="C:\PicknPay\testing\Testing_weekdates.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH01" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;I am not getting the right output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvw. Can you please look into this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 02:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356299#M132226</guid>
      <dc:creator />
      <dc:date>2012-06-18T02:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356300#M132227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change your calculated dimension to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But instead of calculating the dimension, you might want to create this one on the script side already when you load the start and end date. Use the same syntax to generate a new dimension value which will improve the performance in the chart calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)]) as DimensionDate&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 02:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356300#M132227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-18T02:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356301#M132228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)]) worked.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;But I did not understand the explanation : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;"&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;But instead of calculating the dimension, you might want to c&lt;STRONG&gt;reate this one on the script side already w&lt;/STRONG&gt;hen you load the start and end date. Use the same syntax to&lt;STRONG&gt; generate a new dimension value&lt;/STRONG&gt; which will improve the performance in the chart calculation:"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 03:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356301#M132228</guid>
      <dc:creator />
      <dc:date>2012-06-18T03:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356302#M132229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script you load the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD article_no, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WEEK_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseline_sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Incremental sales], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseline_margin, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Incremental_profit, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quandrant, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store_format, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSM_type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseline_avg_basket_value, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg_basket_value, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseline_no_of_baskets, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no_of_baskets, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vendor_fund, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; promotion_cost, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prom_flag, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date (start)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date (end)]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\PicknPay\testing\DataVisualization_data_set_20120608_testing0617.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is test2X);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have both your [Date (start)] and [Date (end)] fields. If you add a new field in the script,&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;date([Date (start)]) &amp;amp; ' - ' &amp;amp; date([Date (end)]) as DimensionDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;you will create a new field with the value formatted in the way that you want to display in your chart already.&lt;/P&gt;&lt;P&gt;Then in the chart dimensions, you only have to add the "DimensionDate" field as a dimension instead of using the calculated dimension. This should make it faster for QlikView to calculate your chart which should make the business users a little bit happier &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 03:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356302#M132229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-18T03:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356303#M132230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood this time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you are saying that instead of calculating have them preloaded. &lt;/P&gt;&lt;P&gt;This brings me to another question. In my data set there are certain columns like sales and baseline sales and in the chart I am creating I want to show Incremental sales which is the differnece between sales and baseline sales. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , from design point of view can you please tell me which one is better to just have the sales and baselinesales columns in the dataset, or sales, baseline and incrementalsales(calclated) or just incremental_sales column in the dataset. I am talking millions of records here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 03:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Expression/m-p/356303#M132230</guid>
      <dc:creator />
      <dc:date>2012-06-18T03:27:55Z</dc:date>
    </item>
  </channel>
</rss>

