<?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: SCD Type 1 error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885338#M657504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trim() removes leading or trailing blanks, len() returns the length of the field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This combination of functions return zero when the argument is NULL or blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The where clause will filter these records (exclude from being loaded into the mapping table).&lt;/P&gt;&lt;P&gt;In your data example, you don't have cases in field APP that match, but your real data may have (that's what I assumed reading your requirement that you want to have the latest existing App name when the name in the latest month is NULL or missing).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 11:34:24 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-05-19T11:34:24Z</dc:date>
    <item>
      <title>SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885333#M657499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read all the discussion on SCD , they explain SCD are and some provide a&amp;nbsp; solution for Type 2 and other errors using interval match function , but not for type 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In my model i have a field called &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Application Name , the _date , and a server name. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;app1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug-13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRV100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My dates are in Jan-15 format MMM-YY&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;as time go's on the application name for that server changes from the incorrect names to the more&amp;nbsp; correct application names . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How can i use the&amp;nbsp; application name used in the latest month for&amp;nbsp; all&amp;nbsp; other previous months &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I wish to keep my old data , creating an alternate column Latest_App name would suffice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If the Application name in the latest month is blank or null , then i want to use the latest application name that is available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 09:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885333#M657499</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-05-19T09:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885334#M657500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SCD Type1 simply means that the mapping table is updated for all dates (no history).&lt;/P&gt;&lt;P&gt;If i understand you correctly you would like to keep the old mapping and add the new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each of these, I would load a mapping table with the app names (one mapping table for old, one for new), and then use applymap to load both of them for all periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('APPNAMES_OLD', [server name]) As ApplicationName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('APPNAMES_NEW', [server name]) As Latest_ApplicationName,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 09:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885334#M657500</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-19T09:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885335#M657501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it in this test model with test data . &lt;/P&gt;&lt;P&gt;Couldn't get it to work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 10:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885335#M657501</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-05-19T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885336#M657502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The key to this approach is that your mapping table needs to be build correctly, i.e. map latest app names to the key server name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the mapping table will take the first existing value for your key, you need to order your mapping table by date desc (and maybe filter out the NULLs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;Mapping LOAD SRV ,APP&lt;/P&gt;&lt;P&gt;Resident A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where len(trim(APP))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;order by the_date desc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 11:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885336#M657502</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-19T11:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885337#M657503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works , just trying to understand how &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where len(trim(APP)) removes the nulls ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 11:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885337#M657503</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-05-19T11:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 1 error</title>
      <link>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885338#M657504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trim() removes leading or trailing blanks, len() returns the length of the field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This combination of functions return zero when the argument is NULL or blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The where clause will filter these records (exclude from being loaded into the mapping table).&lt;/P&gt;&lt;P&gt;In your data example, you don't have cases in field APP that match, but your real data may have (that's what I assumed reading your requirement that you want to have the latest existing App name when the name in the latest month is NULL or missing).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 11:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SCD-Type-1-error/m-p/885338#M657504</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-19T11:34:24Z</dc:date>
    </item>
  </channel>
</rss>

