<?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>Question Re: SAP BusinessObjects - How to split string values into several items? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213814#M4570982</link>
    <description>&lt;P&gt;Hi Mahboob,&lt;/P&gt;&lt;P&gt;Thank you very much for your detailed input. Much appreciated!&lt;/P&gt;&lt;P&gt;Just wondering, what if the data source is from excel file (Assuming we cannot alter anything in excel file and process it as is) ? It seems we are not able to use Combine Query function if data is taken from elsewhere other than universe.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 10:52:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-03-18T10:52:51Z</dc:date>
    <item>
      <title>SAP BusinessObjects - How to split string values into several items?</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaq-p/12213811</link>
      <description>&lt;P&gt;Hello Experts, &lt;/P&gt;
  &lt;P&gt;I am an amateur user of SAP BO and would like to seek advice from the community to tackle one of the issue I am currently facing for my project utilizing BusinessObjects.&lt;/P&gt;
  &lt;P&gt;From my current database, I can pull three fields namely "Class", "Name" and "Favourite Food". My objective is to split the string values of the items in "Favourite Food" into several records while still maintaining its relationship with other fields.&lt;/P&gt;
  &lt;P&gt;Is this even possible theoritically? since BusinessObjects only allows quering data but not manipulating or adding/splitting items the database itself. Please kindly advice how can I achieve below screenshot in BusinessObject. Thank you very much!&lt;/P&gt;
  &lt;P&gt;I look forward to your opinions.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1790630-sample.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 10:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaq-p/12213811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-17T10:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BusinessObjects - How to split string values into several items?</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213812#M4570980</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;&lt;P&gt;I've a solution for it which is going to be 2 parts, first part should be implemented at the Universe level, and 2nd part requires some work in the Webi report. I don't have time to try it out, may be you can give it a shot, I'm almost certain it will work.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Universe updates&lt;/STRONG&gt;: Create N objects in the Universe to get separate rows, where N is the max count of values which can appear in one row. Ex: In the data set, we see that Tony has 3 Favorite Foods (Cake, Candy, Steak), so we'll need to create 3 objects.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Favorite Food &lt;/STRONG&gt;(Object 1) formula will be the equivalent of the Webi formula below, which will get you substring starting 1st Character through the the character position before the first comma.&lt;BR /&gt;=Susbtr([Favorite Food];1;Pos([Favorite Food];",")-1)&lt;BR /&gt;For &lt;STRONG&gt;SQL Server database,&lt;/STRONG&gt; the formulas for those objects&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;First Favorite Food&lt;/STRONG&gt; will be: &lt;EM&gt;S&lt;/EM&gt;&lt;EM&gt;UBSTRING(FavoriteFoodColumnName, 1, CHARINDEX(',', FavoriteFoodColumnName)-1)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Second Favorite Food&lt;/STRONG&gt; will be: &lt;EM&gt;SUBSTRING(FavoriteFoodColumnName, Len(&lt;STRONG&gt;First Favorite Food&lt;/STRONG&gt; object)+1, CHARINDEX(',', SUBSTRING(FavoriteFoodColumnName),&lt;EM&gt;Len(&lt;STRONG&gt;First Favorite Food&lt;/STRONG&gt; object)+1,Len&lt;EM&gt;(FavoriteFoodColumnName)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;)-1)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You'll have to determine, the formulas to extract the 2nd favorite food (call the object &lt;STRONG&gt;Second Favorite Food&lt;/STRONG&gt;), 3rd favorite food (call the object &lt;STRONG&gt;Third Favorite Food&lt;/STRONG&gt;), and so on.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Webi Report updates&lt;/STRONG&gt;: You'll have to update the query used to bring the data, by adding N number of combined queries with a Union:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;In the 1st combined query you'll be using &lt;STRONG&gt;First Favorite Food&lt;/STRONG&gt; object&lt;/LI&gt;&lt;LI&gt;In the 2nd combined query you'll be using &lt;STRONG&gt;Second Favorite Food&lt;/STRONG&gt; object&lt;/LI&gt;&lt;LI&gt;In the 3rd combined query you'll be using &lt;STRONG&gt;Third Favorite Food&lt;/STRONG&gt; object and so on&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Pre-requisites for Combined queries:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;All combined queries need to have same number of objects&lt;/LI&gt;&lt;LI&gt;Data Type of object at each position needs to be the same&lt;/LI&gt;&lt;LI&gt;Object (after the report is run) that was switched in each combined queries will have the name of the object in the first combined query, which is &lt;STRONG&gt;First Favorite Food&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope you're able to achieve it without any issues.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mahboob Mohammed&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 17:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213812#M4570980</guid>
      <dc:creator>mhmohammed</dc:creator>
      <dc:date>2020-03-17T17:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BusinessObjects - How to split string values into several items?</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213813#M4570981</link>
      <description>&lt;P&gt;Thank you very much for the detailed instruction Mahboob ! Its really helpful!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 10:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213813#M4570981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-18T10:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BusinessObjects - How to split string values into several items?</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213814#M4570982</link>
      <description>&lt;P&gt;Hi Mahboob,&lt;/P&gt;&lt;P&gt;Thank you very much for your detailed input. Much appreciated!&lt;/P&gt;&lt;P&gt;Just wondering, what if the data source is from excel file (Assuming we cannot alter anything in excel file and process it as is) ? It seems we are not able to use Combine Query function if data is taken from elsewhere other than universe.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 10:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213814#M4570982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-18T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BusinessObjects - How to split string values into several items?</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213815#M4570983</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;&lt;P&gt;If assuming you can alter anything in Excel, you should create an excel based Universe or, load that Excel data to a Microsoft access data base (saved on shared drive accessible through BO) and create a Universe using that database. That's one way, if you don't want to alter Excel.&lt;/P&gt;&lt;P&gt;Or, you create another excel document, having formula in each cell pointing to each cell of the Excel (with data), and do some transformations there, to split the Favorite Food column into multiple columns (then copy that in different tabs), and then create multiple queries.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mahboob Mohammed&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-businessobjects-how-to-split-string-values-into-several-items/qaa-p/12213815#M4570983</guid>
      <dc:creator>mhmohammed</dc:creator>
      <dc:date>2020-03-18T15:06:36Z</dc:date>
    </item>
  </channel>
</rss>

