<?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: Line break in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826328#M1043605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition to what Aaron says, if you just want to show part of the string (the first n characters) just to make the chart axis more readable instead, you can set the legend limit number in the Presentation tab of the chart properties window, as showed in the figure below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72272_Capture.PNG.png" style="width: 620px; height: 312px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 10:20:27 GMT</pubDate>
    <dc:creator>giacomom</dc:creator>
    <dc:date>2014-11-27T10:20:27Z</dc:date>
    <item>
      <title>Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826326#M1043601</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;Is it possible to make a line break in the script? I use field values loaded in the script in a graph as axis values. The field values are text string and the length of the string needs to be divided in two rows. example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nr,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcdefghij klmn opqrst .....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i would like to do is to insert a line break in field Data. The length of the string makes it difficoult to show on a graph axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826326#M1043601</guid>
      <dc:creator />
      <dc:date>2014-11-27T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826327#M1043604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to divide it into two rows based on a count of characters or a split, use a calculated dimension. For a count use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Left(Data, X) &amp;amp; chr(10) &amp;amp; Right(Data, len(Data)-X) replacing X with however many characters you want on the first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to break at every space, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField(Data,' ',1) &amp;amp; chr(10) &amp;amp; SubField(Data,' ',2)...etc for however many spaces/rows you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If then in the axes tab you set the Dimension Axis labels to / or | you'll get all the lines appearing with the line breaks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826327#M1043604</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-27T09:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826328#M1043605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition to what Aaron says, if you just want to show part of the string (the first n characters) just to make the chart axis more readable instead, you can set the legend limit number in the Presentation tab of the chart properties window, as showed in the figure below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72272_Capture.PNG.png" style="width: 620px; height: 312px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 10:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826328#M1043605</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-11-27T10:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826329#M1043606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;almost there, i try to make 3 line breaks. 2 works fine but when i make 3 the text dissappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826329#M1043606</guid>
      <dc:creator />
      <dc:date>2014-11-27T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826330#M1043607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which of the options are you using? If it's the SubField script, putting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp; SubField(Data,' '.3) after the above statement should work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actually, just thought of a much simpler option. Use: Replace(Data,' ',chr(10)) instead - this will replace any space with a line break. Not sure how many this would take before running out of line space though!&lt;/STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's using the Left/Right statements you'll need to introduce a "Mid" statement as well - let me know if that's the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826330#M1043607</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-27T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Line break in script</title>
      <link>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826331#M1043608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanks Aaron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 15:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-break-in-script/m-p/826331#M1043608</guid>
      <dc:creator />
      <dc:date>2014-11-27T15:24:48Z</dc:date>
    </item>
  </channel>
</rss>

