<?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: create category filed issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030852#M943576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the word presentation will always be there similar to how I added it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 19:08:17 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2016-01-19T19:08:17Z</dc:date>
    <item>
      <title>create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030847#M943569</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 a filed that has&lt;/P&gt;&lt;P&gt;fieldName&lt;/P&gt;&lt;P&gt;sales\layer 1\abc&lt;/P&gt;&lt;P&gt;sales\layer 1\2 \test&lt;/P&gt;&lt;P&gt;calls\layer 1 testing&lt;/P&gt;&lt;P&gt;prod\layer 3\abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a field that shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layer 1&lt;/P&gt;&lt;P&gt;layer 1\2&lt;/P&gt;&lt;P&gt;layer 1&lt;/P&gt;&lt;P&gt;layer 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried wildmatch but run into issue because of having "1/2"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 18:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030847#M943569</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-01-19T18:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030848#M943570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Mid(fieldName, Index(fieldName, '\', 1)+1, Index(fieldName, '\', -1)-Index(fieldName, '\', 1)-1) as NewField;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sales\layer 1\abc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sales\layer 1\2 \test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;calls\layer 1\testing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prod\layer 3\abc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112040_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; I assumed that you forget '\' for the third row. If there is a '\', then this solution will have to be altered further.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;STRONG style="font-size: 13.3333px;"&gt;calls\layer 1&lt;SPAN style="color: #ff0000;"&gt;\&lt;/SPAN&gt;testing)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 18:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030848#M943570</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T18:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030849#M943571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why layer 1 at the second row?&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112039_1.png" style="height: auto; width: auto;" /&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;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(f1&amp;lt;&amp;gt;f2, mid(field, f1+1, f2-f1-1)) ;&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;&amp;nbsp; field,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; index(field, '\', 1) as f1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; index(field, '\', -1) as f2 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sales\layer 1\abc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sales\layer 1\2 \test&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;calls\layer 1 testing&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;prod\layer 3\abc&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>Tue, 19 Jan 2016 18:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030849#M943571</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-19T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030850#M943573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all..&lt;/P&gt;&lt;P&gt;actually the field I want to use has the following look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FiledName&lt;/P&gt;&lt;P&gt;AVC - Test Layer 3&lt;/P&gt;&lt;P&gt;Aed Presentation Layer&lt;/P&gt;&lt;P&gt;Adf Layer2&lt;/P&gt;&lt;P&gt;DEF Layer 1/2&lt;/P&gt;&lt;P&gt;QWE Layer 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result needs to be&lt;/P&gt;&lt;P&gt;Layer 3&lt;/P&gt;&lt;P&gt;Presentation Layer&lt;/P&gt;&lt;P&gt;Layer 2&lt;/P&gt;&lt;P&gt;Layer 1/2&lt;/P&gt;&lt;P&gt;Layer 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 18:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030850#M943573</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-01-19T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030851#M943574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a logic of how you would select the new field? You picked Presentation, but did not pick Test? Just trying to understand the common theme here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030851#M943574</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T19:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030852#M943576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the word presentation will always be there similar to how I added it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030852#M943576</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-01-19T19:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030853#M943578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i meant that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FiledName&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; NewFieldName&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; Notes&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AVC - Test Layer 3&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; Layer 3&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; Test was not picked&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aed Presentation Layer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Presentation Layer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Presentation was&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From the data it seemed that first word would always be Layer, but Presentation was an exception. Now assuming this was just a sample and the real data might have more exceptions, I am looking for some kind of common theme to be able to code it so that we can derive desired result. Hope what I just said make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030853#M943578</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T19:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030854#M943579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Sunny.. this is the only exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will always have the wording the same all over the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FiledName&lt;/P&gt;&lt;P&gt;AVC - Test Layer 3&lt;/P&gt;&lt;P&gt;Aed Presentation Layer&lt;/P&gt;&lt;P&gt;Adf Layer2&lt;/P&gt;&lt;P&gt;DEF Layer 1/2&lt;/P&gt;&lt;P&gt;QWE Layer 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030854#M943579</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-01-19T19:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030855#M943581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what you are saying, It seems like these are the only 5 values that FieldName would ever take. If that's true, may be you just need a mapping load or Pick(Match()) to designate a new value to your existing value. Is my understanding correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030855#M943581</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T19:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030856#M943582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually no. the values Presentation Layer, Layer 1, Layer 1/2, Layer 2, Layer 3 and Presentation Layer wording will always exist on the same location within the string..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other values within the same string will never be the same..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030856#M943582</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-01-19T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: create category filed issue</title>
      <link>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030857#M943584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(WildMatch(FieldName, '*Layer 3*', '*Presentation Layer*', '*Layer 2*', '*Layer 1/2*', '*Layer 1*'), 'Layer 3', 'Presentation Layer', 'Layer 2', 'Layer 1/2', 'Layer 1')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-category-filed-issue/m-p/1030857#M943584</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T19:32:58Z</dc:date>
    </item>
  </channel>
</rss>

