<?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: Help with using SubField to split names and $ in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171526#M21403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this suggestion. I had thought of joining two tables, but wanted to investigate if I could do this any other way. I ended up getting this to work using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Gysbert's first suggestion. Seems I have a lot to learn about some of these functions!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 17:53:06 GMT</pubDate>
    <dc:creator>drminaker</dc:creator>
    <dc:date>2016-05-18T17:53:06Z</dc:date>
    <item>
      <title>Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171522#M21399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set tracking sales similar to this, where I have multiple names in one column that I need to split out so we can track each person individually.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid #000000; font-size: 13.3333px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Engagement&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Revenue&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000;"&gt;A&lt;/TD&gt;&lt;TD style="color: #000000;"&gt;25,000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Ryan, Luka&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000;"&gt;B&lt;/TD&gt;&lt;TD style="color: #000000;"&gt;10,000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Sarah&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used &lt;STRONG&gt;LTrim&lt;/STRONG&gt; and &lt;STRONG&gt;SubField&lt;/STRONG&gt; to split the names and clean the data and it works perfectly and gives me a new table like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3366ff; font-size: 10pt;"&gt;LTrim( SubField([Name], ',')) as [Name]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid #000000; font-size: 13.3333px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Engagement&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Revenue&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000;"&gt;A&lt;/TD&gt;&lt;TD style="color: #000000;"&gt;25,000&lt;/TD&gt;&lt;TD&gt;Ryan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;A&lt;/TD&gt;&lt;TD colspan="1"&gt;25,000&lt;/TD&gt;&lt;TD colspan="1"&gt;Luka&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000;"&gt;B&lt;/TD&gt;&lt;TD style="color: #000000;"&gt;10,000&lt;/TD&gt;&lt;TD&gt;Sarah&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I need to Sum the total [Revenue] regardless of who's working on what, which should be 35,000, but the number I get is 60,000. I understand why, because 25,000 is being counted twice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any guidance on the best way to work around this? Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 14:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171522#M21399</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2016-05-18T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171523#M21400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The subfield function as used by you simply creates a new record for each value in the list. All the other fields of the record are duplicated. In this case you can decide to divide the Revenue amount by the number of names in the list: Revenue/(substringcount(Name,',')+1) as Revenue. That way you can sum it up for the Engagement dimension to get the original amount. If that's not good enough you'll have to get create with expressions like sum(aggr(avg(Revenue),Name,Engagement))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 15:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171523#M21400</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-05-18T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171524#M21401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you create two tables instead, joined on Engagement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Table one contains Engagement, Revenue&lt;/P&gt;&lt;P&gt;Table two contains Engagement, Name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 15:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171524#M21401</guid>
      <dc:creator />
      <dc:date>2016-05-18T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171525#M21402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&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;I couldn't seem to get the&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;sum(aggr(avg(Revenue),Name,Engagement)) &lt;/SPAN&gt; to give me the right number when I used it with my full data set (but I didn't spend too much time troubleshooting), but your other suggestion worked perfectly:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3366ff; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Revenue/(substringcount(Name,',')+1) as Revenue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 17:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171525#M21402</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2016-05-18T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171526#M21403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this suggestion. I had thought of joining two tables, but wanted to investigate if I could do this any other way. I ended up getting this to work using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Gysbert's first suggestion. Seems I have a lot to learn about some of these functions!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 17:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171526#M21403</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2016-05-18T17:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using SubField to split names and $</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171527#M21404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code : &lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;Trim( SubField([Name], ',')) as [Name]&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really helped me a lot.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-using-SubField-to-split-names-and/m-p/1171527#M21404</guid>
      <dc:creator>gardan</dc:creator>
      <dc:date>2016-08-03T19:49:43Z</dc:date>
    </item>
  </channel>
</rss>

