<?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: Using Subfield, getting blank dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201553#M875735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could also try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14779371007807388" jivemacro_uid="_14779371007807388" modifiedtitle="true"&gt;
&lt;P&gt;1:&lt;/P&gt;
&lt;P&gt;LOAD [Report Number], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(SubField([Root Cause],';')) as [Root Cause]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;\\aoc.gov\network_shares$\User_Profiles\aglenden\Desktop\junk\data_sample.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;[Report Number],&lt;/P&gt;
&lt;P&gt;[Root Cause]&lt;/P&gt;
&lt;P&gt;Resident 1 Where len([Root Cause])&amp;gt;0; DROP Table 1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 18:06:43 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2016-10-31T18:06:43Z</dc:date>
    <item>
      <title>Using Subfield, getting blank dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201551#M875733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field with what I thought were newline characters or carriage returns. I tried to replace these characters in the load script, but they still display. Here is a screenshot of the data:&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142453_Capture2.PNG" style="height: 271px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a screenshot of the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/142490_Capture1.PNG" style="height: 153px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That first entry in the chart is what is confusing me. Hopefully this is an easy question, even if it makes me look dumb...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201551#M875733</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Subfield, getting blank dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201552#M875734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's happening because everything in your [Root Cause] column in Excel ends in a semicolon, and that is also what you are trying to use as a delimiter in subfield.&amp;nbsp; So when it is splitting it, it's trying to get whatever is after the last semicolon, which just happens to be an empty string.&amp;nbsp; If you strip off the ending semicolon, it fixes the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Report Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp; Trim(SubField(left([Root Cause], len([Root Cause])-1),';')) as [Root Cause]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;\\aoc.gov\network_shares$\User_Profiles\aglenden\Desktop\junk\data_sample.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201552#M875734</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-10-31T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Subfield, getting blank dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201553#M875735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could also try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14779371007807388" jivemacro_uid="_14779371007807388" modifiedtitle="true"&gt;
&lt;P&gt;1:&lt;/P&gt;
&lt;P&gt;LOAD [Report Number], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(SubField([Root Cause],';')) as [Root Cause]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;\\aoc.gov\network_shares$\User_Profiles\aglenden\Desktop\junk\data_sample.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;[Report Number],&lt;/P&gt;
&lt;P&gt;[Root Cause]&lt;/P&gt;
&lt;P&gt;Resident 1 Where len([Root Cause])&amp;gt;0; DROP Table 1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Subfield-getting-blank-dimension/m-p/1201553#M875735</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-10-31T18:06:43Z</dc:date>
    </item>
  </channel>
</rss>

