<?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: question about data manipulation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813311#M286934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Source:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Brand, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Media type], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost RUB], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost USD], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;brand_data.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Year = 2014&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate (Source)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;brand_data.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Year = 2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and exists(Brand)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 19:32:17 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-16T19:32:17Z</dc:date>
    <item>
      <title>question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813306#M286929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;While loading the data in QV model I need to exclude those items (in my example - brands) which were present in the last year but not present in the current year. Supppose, that there are only two years in my model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I did the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;1) uploaded the data from the source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;3) stored the table in QVD format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;2) defined variables &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;MinYear and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;MaxYear&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Then I need to define a condition: if there is a record for a particular Brand in &lt;SPAN style="font-size: 12px;"&gt;MinYear but there is no record for the same Brand in MaxYear, then this particular Brand should be excluded from the table.&amp;nbsp; How can I do it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt;"&gt;brand_data:&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; [Brand], &lt;BR /&gt; [Year],&lt;BR /&gt; [Budget]&lt;BR /&gt; &lt;BR /&gt; FROM&lt;BR /&gt; brand_data.xlsx&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt;"&gt;LET MaxYear=max([Year]) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: arial, helvetica, sans-serif;"&gt;LET MinYear=min([Year])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Larisa Filonova &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813306#M286929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813307#M286930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load data of current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load data of previous year where brand already loaded (use exists)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813307#M286930</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-16T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813308#M286931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but it doesn't solve the whole task. Note, that there is also a field Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain by giving you an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let current year be 2014. &lt;/P&gt;&lt;P&gt;Brand A is present in Aug 2014. It is not present in any other month of 2014.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand A is present in Jan,Feb,Mar 2013. It is not present in any other month of 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In this case no records should be excluded from my source data, because Brand A is present in 2013 and 2014. It is no matter that months are different.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose, that I followed your advice and loaded the data of the current year (2014). The next step you suggest will work incorrectly in this example. QlikView will not load Brand A (2013) where it has already been loaded in 2014, because there is no record for &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jan,Feb,Mar in 2014&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813308#M286931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813309#M286932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it doesn't matter if brand A is in 2014 august or january&lt;/P&gt;&lt;P&gt;If you first load all months of 2014, at the end of this load (or loads) you have the brands of 2014.&lt;/P&gt;&lt;P&gt;Then you start loading 2013 (full, by months, etc...) but only brands already loaded.&lt;/P&gt;&lt;P&gt;Try to post some data, maybe aI'm missing something &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813309#M286932</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-16T18:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813310#M286933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached my data. I'd be greatfull if you show me which operators I should use in the script to imlement your idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 19:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813310#M286933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813311#M286934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Source:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Brand, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Media type], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost RUB], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost USD], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;brand_data.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Year = 2014&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate (Source)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;brand_data.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Year = 2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and exists(Brand)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 19:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813311#M286934</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-16T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: question about data manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813312#M286935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 19:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-data-manipulation/m-p/813312#M286935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T19:41:10Z</dc:date>
    </item>
  </channel>
</rss>

