<?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: Split string in multiple lines in bar chart dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532983#M199103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a Document by bringing in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MISSING BILL TO CUSTOMER ID IVC STATUS CONTRA FLAG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it would look like this in the Script to get the result you want, however the below will only work for that one sentence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik_Comm.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/45903_Qlik_Comm.png" /&gt;&lt;/P&gt;&lt;P&gt;If these responses are are helpful, mark them as such, as others will need to find the correct or helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 20:54:29 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2013-08-26T20:54:29Z</dc:date>
    <item>
      <title>Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532976#M199096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirement in one of my qlikview report.&lt;/P&gt;&lt;P&gt;I have a bar chart with expression as sum(amount) and dimension as DQ_Issue.&lt;/P&gt;&lt;P&gt;The DQ_Issue field will contain long string values(upto 200 characters with space between words).&lt;/P&gt;&lt;P&gt;So if I use DQ_Isssue as dimension the value won't be visible completely in the graph.&lt;/P&gt;&lt;P&gt;I want to split the long string to multiple lines and then keep as a dimension in the bar chart.Also it should be alighed at centre&lt;/P&gt;&lt;P&gt;How I can i split the string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest your ideas if any.&lt;/P&gt;&lt;P&gt;Thanks in advance.Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praveena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532976#M199096</guid>
      <dc:creator />
      <dc:date>2013-08-26T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532977#M199097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using SUBFIELD Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subfield (DQ_Issue, 2) AS DQ_Issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532977#M199097</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-08-26T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532978#M199098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. subfiled is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532978#M199098</guid>
      <dc:creator />
      <dc:date>2013-08-26T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532979#M199099</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;Are you trying to do this in the Script or as a calculated Dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532979#M199099</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-08-26T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532980#M199100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry it should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBFIELD(DQ_Issue,' ',2) as DQ_Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will find a space in the string and return the second value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use the ones below and see what works best for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBFIELD(DQ_Issue,' ',1) &lt;/P&gt;&lt;P&gt;SUBFIELD(DQ_Issue,' ',3) &lt;/P&gt;&lt;P&gt;SUBFIELD(DQ_Issue,' ',5) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RIGHT(DQ_Issue),19) which will give the last 19 characters of the string&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;LEFT(DQ_Issue),19) which will give you the first 19 characters in the string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you could try a mixture of both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT(RIGHT(DQ_Issue),19),100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try MID()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a lot of ways you can try get the result you require, send me a sample line from your document and I will try help you further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532980#M199100</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-08-26T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532981#M199101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Alan says, there are many ways to wrap the field value.&amp;nbsp; I can in addition suggest a replace() function:&lt;/P&gt;&lt;P&gt;replace(DQ_Issue, ' ', chr(10))&lt;/P&gt;&lt;P&gt;It will replace each space with "line feed".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's not helpful for a bar chart, because only the first line will be shown.&amp;nbsp; Maybe there is a solution which I don't know yet...&lt;/P&gt;&lt;P&gt;I recommend to use staright table, where you have to use the next two features:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Wrap Cell Text (it is on Presentation tab).&lt;/P&gt;&lt;P&gt;2. For expression, use representation "Linear Gauge" and configure it to look like bar, one segment filled to value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same can be done with list box with expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532981#M199101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-26T20:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532982#M199102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still&amp;nbsp; how&amp;nbsp; we can split the string in different lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example one of my DQ_Issue string is 'MISSING BILL TO CUSTOMER ID IVC STATUS CONTRA FLAG'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to split it like&lt;/P&gt;&lt;P&gt;MISSING BILL TO&lt;/P&gt;&lt;P&gt;CUSTOMER ID&lt;/P&gt;&lt;P&gt;IVC STATUS&lt;/P&gt;&lt;P&gt;CONTRA&amp;nbsp; FLAG'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532982#M199102</guid>
      <dc:creator />
      <dc:date>2013-08-26T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532983#M199103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a Document by bringing in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MISSING BILL TO CUSTOMER ID IVC STATUS CONTRA FLAG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it would look like this in the Script to get the result you want, however the below will only work for that one sentence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik_Comm.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/45903_Qlik_Comm.png" /&gt;&lt;/P&gt;&lt;P&gt;If these responses are are helpful, mark them as such, as others will need to find the correct or helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532983#M199103</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-08-26T20:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532984#M199104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I have the same problem and had the same idea like you had to use a linear gauge as a workaround.&lt;/P&gt;&lt;P&gt;But unfortunately if you set the start values of the segments dynamically by using functions, these functions wont show any dependancy to the dimension values. i.e. you will get the same total-value in each line of your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or solutions with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 10:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532984#M199104</guid>
      <dc:creator>michelfeit</dc:creator>
      <dc:date>2013-10-23T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532985#M199105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked on this some time back,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/211766#211766"&gt;http://community.qlik.com/message/211766#211766&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and the best I could come up with was splitting the strings in the script and displaying on the diagonal. Attached is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got this on the list of things to add to QVC. &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>Tue, 12 Nov 2013 02:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532985#M199105</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-11-12T02:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Split string in multiple lines in bar chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532986#M199106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;Very nice workaround! It works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two suggestions on the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a red underline in the script on the line&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat(Split, chr(10), SplitId) as $(vSplitField)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think it should be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;concat(Split &amp;amp; chr(10)) as $(vSplitField)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And line&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;GROUP BY Title&lt;/P&gt;&lt;P&gt;Should be&lt;/P&gt;&lt;P&gt;GROUP BY $(vField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 08:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-in-multiple-lines-in-bar-chart-dimension/m-p/532986#M199106</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2013-11-12T08:24:36Z</dc:date>
    </item>
  </channel>
</rss>

