<?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: Displaying long labels on chart X-axis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358911#M133205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly the approach I needed.&amp;nbsp; Just had to change a long 3-word value in the dimension to a 2 line value that doesn't go off the corner off the graph.&amp;nbsp; I did like this to tweak that one long value and leave the others alone:&lt;/P&gt;&lt;P&gt;=if(EmailInquiryType='Screenings and HAs', Replace(EmailInquiryType,'Screenings and HAs','HA and '&amp;amp;chr(10)&amp;amp;'Screening'), EmailInquiryType)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 17:10:30 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2014-12-23T17:10:30Z</dc:date>
    <item>
      <title>Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358904#M133198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone asked this question &lt;A _jive_internal="true" href="https://community.qlik.com/message/209386#209386"&gt;http://community.qlik.com/message/209386#209386&lt;/A&gt; on the recent "Ask the Experts - Visualization" event. It was an intriguing question because I've run up against this problem before.&amp;nbsp; The orginal thread is locked, so I thought I would post a solution here. The orginal question was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;What is the best way of showing long values on x-axis for charts since qlikview can't do wrap text on values?&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Most of the time, the best we could show our client is to make it at 45 degrees angle or make the dimension on y-axis, horizontal chart. It doesn't look nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;This is not very qool... don't you think?&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Any suggestions? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There appears to be no way to get the wrap to look noce in the UI. So my solution is to use a script SUB&amp;nbsp; to create a new field that's broken into segments based on the first space after a minmum segment length. And then use the new field as the chart. It may look a bit daunting, but the only thing you need to modify the CALL statement at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUB SplitString (vField, vTable, vSegLen, vSplitField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Split_temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trim(mid($(vField), Start, Count-1)) as Split,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RowNo() as SplitId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;index( mid($(vField) &amp;amp; ' ', Start+$(vSegLen)), ' ' )+$(vSegLen)&amp;nbsp; as Count&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(vField),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($(vField) = Previous($(vField)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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;,peek('Start')+peek('Count')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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;,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)as Start&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT $(vTable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHILE IterNo() &amp;lt;= div(len($(vField)),$(vSegLen))+1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN($(vTable))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(vField),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;concat(Split, chr(10), SplitId) as $(vSplitField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT Split_temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE len(trim(Split)) &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY Title&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE Split_temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;END SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MyTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *, RecNo() as RecId INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Title&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;This is a long title that spans a long ways&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;This is a long title that spans a long ways&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;This one is even very much longer then the previous long title&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;A shorter title&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;The rain in Spain&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Healthcare / Services / Consulting / Accounting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Call parms are Field, Tablename, SplitLength, OutputSplitField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Split the string in "Field" at the first blank after segment length of "SplitLength".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// New field "OutputSplitField" will be joined to table "Tablename"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL SplitString('Title', 'MyTable', 15, 'SplitTitle');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 01:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358904#M133198</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-04-19T01:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358905#M133199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following - made the dimension an expression be Replace(dimension,' ',chr(10))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to create the multiple line labels, but for some reason QV does not display then horzontally or vertically (in vertical I see 2 lines, horizontal only one) - but in diagonal it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems that if I can figure out the option on the axis it may work, anyone knows what that option would be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 17:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358905#M133199</guid>
      <dc:creator />
      <dc:date>2012-07-27T17:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358906#M133200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's all about the height and width of the chart. If you make the chart taller, you will see more lines in horizontal mode. If you make the chart wider, you will see more lines in the vertical mode. The number of lines will vary depending on number of dimensions and chart size. The diagonal is much more predictable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 17:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358906#M133200</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-07-27T17:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358907#M133201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried to resize the chart with no luck - I resized the entire chart, and I also tried the internal element (with ctrl-shift) and I cant seem to display more than 1 lines in the labels, my labels are of the type "Mainstream Retired" or "Multi High Branch" so I expect 2 or 3 lines. Am I missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see your code and I understand it, I am just not sure where or how to deploy it - is it on the load script? (my application uses a dynamix dimesnion that you can choose using a variable box, so I may need to adjust it to work with that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i right to assume that your code will have the same issue and I may end up with the diagonal ones&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 18:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358907#M133201</guid>
      <dc:creator />
      <dc:date>2012-07-27T18:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358908#M133202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I tried it out, and I can't get more than one line on the horizontal or two lines on vertical. Don't know if there is a way around it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code goes in the script to create a copy of the field with line breaks at n characters. Yes, you will need to use diagonal labels to get all lines to show. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 20:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358908#M133202</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-07-27T20:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358909#M133203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;this could be helpful (in spanish)&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewapuntes.blogspot.com/2014/09/ajustar-texto-en-grafico-barras.html" title="http://qlikviewapuntes.blogspot.com/2014/09/ajustar-texto-en-grafico-barras.html"&gt;Qlikview en Español: Ajustar Texto en Grafico Barras&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 00:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358909#M133203</guid>
      <dc:creator />
      <dc:date>2014-09-19T00:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358910#M133204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #141823; font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 14px;"&gt;Qlikview: Wrapping text in X Axis &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://l.facebook.com/l.php?u=http%3A%2F%2Fscribbledbygb.blogspot.co.uk%2F2014%2F10%2Fwrap-text-in-x-axis-qlikview.html&amp;amp;h=3AQHKH7kl&amp;amp;s=1" rel="nofollow nofollow" style="color: #3b5998; font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 14px;" target="_blank"&gt;http://scribbledbygb.blogspot.co.uk/2014/10/wrap-text-in-x-axis-qlikview.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 09:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358910#M133204</guid>
      <dc:creator />
      <dc:date>2014-10-09T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358911#M133205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly the approach I needed.&amp;nbsp; Just had to change a long 3-word value in the dimension to a 2 line value that doesn't go off the corner off the graph.&amp;nbsp; I did like this to tweak that one long value and leave the others alone:&lt;/P&gt;&lt;P&gt;=if(EmailInquiryType='Screenings and HAs', Replace(EmailInquiryType,'Screenings and HAs','HA and '&amp;amp;chr(10)&amp;amp;'Screening'), EmailInquiryType)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 17:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358911#M133205</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-12-23T17:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358912#M133206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not that I want to dig up an old thread here but your solution was what I have been struggling with for a few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ultimately wanted to create a field that would look nice on a bar chart as the text of the field is pretty long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found by using this code was that this function was very elegant and simple it how it was designed to allow you to take any field from any table and create a new, easier to read, label. I made a couple of edits that I wanted to point out because I think they improve the reusability of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, if the field you were parsing was exactly the same as another entry, the end result would group them together thus producing double the text in a single field. I opted to create a new variable (vGroupByField) that you can pass to the function that is a unique field that you want to group by. This will eliminate the double-text and give the intended result. I also realized that you had hard-coded the group by field so I edited this as well. Take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB SplitString (vField, vTable, vSegLen, vSplitField,vGroupByField)&lt;/P&gt;&lt;P&gt;Split_temp:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(mid($(vField), Start, Count-1)) as Split,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as SplitId&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index( mid($(vField) &amp;amp; ' ', Start+$(vSegLen)), ' ' )+$(vSegLen)&amp;nbsp; as Count&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vGroupByField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($(vField) = Previous($(vField))&lt;/P&gt;&lt;P&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; ,peek('Start')+peek('Count')&lt;/P&gt;&lt;P&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; ,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )as Start&lt;/P&gt;&lt;P&gt;RESIDENT $(vTable)&lt;/P&gt;&lt;P&gt;WHILE IterNo() &amp;lt;= div(len($(vField)),$(vSegLen))+1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN($(vTable))&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(Split, chr(10), SplitId) as $(vSplitField)&lt;/P&gt;&lt;P&gt;RESIDENT Split_temp&lt;/P&gt;&lt;P&gt;WHERE len(trim(Split)) &amp;gt; 0&lt;/P&gt;&lt;P&gt;GROUP BY $(vGroupByField),$(vField)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Split_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MyTable:&lt;/P&gt;&lt;P&gt;//LOAD *, RecNo() as RecId INLINE [&lt;/P&gt;&lt;P&gt;//Title&lt;/P&gt;&lt;P&gt;//This is a long title that spans a long ways&lt;/P&gt;&lt;P&gt;//This is a long title that spans a long ways&lt;/P&gt;&lt;P&gt;//This one is even very much longer then the previous long title&lt;/P&gt;&lt;P&gt;//A shorter title&lt;/P&gt;&lt;P&gt;//The rain in Spain&lt;/P&gt;&lt;P&gt;//Healthcare / Services / Consulting / Accounting&lt;/P&gt;&lt;P&gt;//]&lt;/P&gt;&lt;P&gt;//;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Call parms are Field, Tablename, SplitLength, OutputSplitField, UniqueGroupByField&lt;/P&gt;&lt;P&gt;// Split the string in "Field" at the first blank after segment length of "SplitLength".&lt;/P&gt;&lt;P&gt;// New field "OutputSplitField" will be joined to table "Tablename"&lt;/P&gt;&lt;P&gt;CALL SplitString('AccountFriendlyName', 'Accounts', 15, 'SplitTitle','AccountName');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358912#M133206</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-18T18:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358913#M133207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool. Thanks for the update. I might even pull this into Qlikview Components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 21:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358913#M133207</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-10-18T21:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358914#M133208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realized that if the field you are grouping by and the vFieldName are the same field, when you try to load them into the first load statement of the Split_temp it will error. To get around this, I simply rename this field in the load and as a result rename it in the Group by clause.&lt;/P&gt;&lt;P&gt;So the final code should be this( bolded the two edits):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB SplitString (vField, vTable, vSegLen, vSplitField,vGroupByField)&lt;/P&gt;&lt;P&gt;Split_temp:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim(mid($(vField), Start, Count-1)) as Split,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as SplitId&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index( mid($(vField) &amp;amp; ' ', Start+$(vSegLen)), ' ' )+$(vSegLen)&amp;nbsp; as Count&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; $(vGroupByField) as GroupByField,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($(vField) = Previous($(vField))&lt;/P&gt;&lt;P&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; ,peek('Start')+peek('Count')&lt;/P&gt;&lt;P&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; ,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )as Start&lt;/P&gt;&lt;P&gt;RESIDENT $(vTable)&lt;/P&gt;&lt;P&gt;WHILE IterNo() &amp;lt;= div(len($(vField)),$(vSegLen))+1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN($(vTable))&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vField),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(Split, chr(10), SplitId) as $(vSplitField)&lt;/P&gt;&lt;P&gt;RESIDENT Split_temp&lt;/P&gt;&lt;P&gt;WHERE len(trim(Split)) &amp;gt; 0&lt;/P&gt;&lt;P&gt;GROUP BY &lt;STRONG&gt;GroupByField&lt;/STRONG&gt;,$(vField)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Split_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358914#M133208</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2016-10-19T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358915#M133209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ROb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code working perfectly..but its repeating the dimension text..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="10.JPG" class="jive-image image-1" height="230" src="https://community.qlik.com/legacyfs/online/204549_10.JPG" style="height: 230px; width: 392.46px;" width="392" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you give suggestion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 11:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/358915#M133209</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2018-06-07T11:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/1769931#M454533</link>
      <description>&lt;P&gt;hi Rob,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try it in qlik sense.&amp;nbsp; &amp;nbsp; The title is broken to two or three lines in table, but it still showed one line in the Bar chart both vertical and horizontal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 07:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/1769931#M454533</guid>
      <dc:creator>joanna22</dc:creator>
      <dc:date>2020-12-22T07:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/2058251#M1223187</link>
      <description>&lt;P&gt;Yes, the same situation, in Qlik Sense I can't find a way how to show a dimension's title in two or more rows.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 07:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/2058251#M1223187</guid>
      <dc:creator>ilyagolev</dc:creator>
      <dc:date>2023-04-07T07:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying long labels on chart X-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/2493718#M1226261</link>
      <description>&lt;P&gt;is there any recent solution for this issue, i'm using qlik sense feb 2024 and i have the same issue with a bar chart i can't control the overflow and i need to see the whole text&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 16:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-long-labels-on-chart-X-axis/m-p/2493718#M1226261</guid>
      <dc:creator>RanOuerg</dc:creator>
      <dc:date>2024-11-20T16:54:32Z</dc:date>
    </item>
  </channel>
</rss>

