<?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 String functions, the scary type, in a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-functions-the-scary-type-in-a-dimension/m-p/1430165#M430271</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;my issue is the following:&lt;/P&gt;&lt;P&gt;- Basically, the Dimension of my Chart is a Label - the Label of a cost_Center;&lt;/P&gt;&lt;P&gt;- The Labels only differ very much in length which is Kind of annoying in the Chart;&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I devised a set of rules by which the individual elements of These Labels are not abbreviated;&lt;/P&gt;&lt;P&gt;- =&amp;gt; Now the Dimension is that abbreviated Version;&lt;/P&gt;&lt;P&gt;- Still, it could of course be that it is about 25 characters Long and I actually Need a line_break;&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I want to introduce a formula by which to insert linebreaks if there are several individual words, that's easy;&lt;/P&gt;&lt;P&gt;- &amp;lt;=&amp;gt; But when the first word consists of just 2 letters, which happens because of my Abbreviation rules, I don't want to include a&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line_break after those 2 lettters ...&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I Need some mechanism by which to identify&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how many individual words (separated by blanks) I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how many of those I can put on one line before reaching, say, 20 characters - of course I don't want to end up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ripping words apart ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Challenging. Let's see.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 08:52:53 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2017-10-25T08:52:53Z</dc:date>
    <item>
      <title>String functions, the scary type, in a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions-the-scary-type-in-a-dimension/m-p/1430165#M430271</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;my issue is the following:&lt;/P&gt;&lt;P&gt;- Basically, the Dimension of my Chart is a Label - the Label of a cost_Center;&lt;/P&gt;&lt;P&gt;- The Labels only differ very much in length which is Kind of annoying in the Chart;&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I devised a set of rules by which the individual elements of These Labels are not abbreviated;&lt;/P&gt;&lt;P&gt;- =&amp;gt; Now the Dimension is that abbreviated Version;&lt;/P&gt;&lt;P&gt;- Still, it could of course be that it is about 25 characters Long and I actually Need a line_break;&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I want to introduce a formula by which to insert linebreaks if there are several individual words, that's easy;&lt;/P&gt;&lt;P&gt;- &amp;lt;=&amp;gt; But when the first word consists of just 2 letters, which happens because of my Abbreviation rules, I don't want to include a&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line_break after those 2 lettters ...&lt;/P&gt;&lt;P&gt;- =&amp;gt; So I Need some mechanism by which to identify&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how many individual words (separated by blanks) I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - how many of those I can put on one line before reaching, say, 20 characters - of course I don't want to end up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ripping words apart ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Challenging. Let's see.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 08:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions-the-scary-type-in-a-dimension/m-p/1430165#M430271</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-10-25T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: String functions, the scary type, in a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions-the-scary-type-in-a-dimension/m-p/1430166#M430272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made it. There was only one issue, but I fixed that - for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now query the length of the term and if it surpasses a Limit of 15 characters, I further check whether there is one separating blank or two and in each case I check again how many of the segments I can fit on one line before exceeding 15 characters and doing a line_break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that formula is based on the set of rules for Abbreviation which I thought up based on the Labels I have right now - if going Forward there should be a new Label, that might not fit my rules and there might be a Display Problem in that Chart - but that was the best I could come up with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 12:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions-the-scary-type-in-a-dimension/m-p/1430166#M430272</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-10-25T12:33:25Z</dc:date>
    </item>
  </channel>
</rss>

