<?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: Repeating columns in report (to support custom SQL) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867236#M3542452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uday can you post a screenshot? in the reports pane you should be able to use the same columns as may times as you want. Also which tab are you using, Crosstab?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 16:57:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-19T16:57:45Z</dc:date>
    <item>
      <title>Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaq-p/9867232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this has been addressed in this forum but I wasn't able to find any references hence this question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement to support custom SQL (i.e., not generated by webi) for some of our reports. The same column needs to appear more than once in the report and but I am unable to drag it from my set of universe objects more than once into the report pane. I've tried using a blank cell and trying to bind that to the query but haven't had any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to create such reports in web intelligence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 13:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaq-p/9867232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867233#M3542449</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;Open webi report &amp;gt; Data access &amp;gt; Edit &amp;gt; SQL (on top of query window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you have the option of adding custom sql and modify the query.&lt;/P&gt;&lt;P&gt;Else you could create a derived table in the Universe and bring to report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 14:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867233#M3542449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867234#M3542450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't asking about modifying the SQL. My question was about how to make the report match the custom SQL when the query returns the same column multiple times. I am unable to drag a column more than once into the report pane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 16:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867234#M3542450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867235#M3542451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use different columns from the universe for the custom query but you will have to make sure the data type and measure and dimensions match with your custom sql..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have done this you can just use these objects (all different) with a reference to what you have defined in the custom SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the screenshot where I am using territory code in custom query even the element in the report is a different dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326932" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 16:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867235#M3542451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867236#M3542452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uday can you post a screenshot? in the reports pane you should be able to use the same columns as may times as you want. Also which tab are you using, Crosstab?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 16:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867236#M3542452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867237#M3542453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "Query returns column multiple times"?&lt;/P&gt;&lt;P&gt;Have you tried the sql in SQL Server and see whats the result? If it doesn't work in SQL, it won't work in BI also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 17:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867237#M3542453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867238#M3542454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For future reference, try to post any WebI questions in the Web Intelligence forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I understand your requirement correctly, I think you should drag the universe object only once in QueryPanel and create a variable inside the report &amp;gt; equate it to the object you want to repeat &amp;gt; in the report table add universe object and the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if that works and if you have any further questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Runali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 17:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867238#M3542454</guid>
      <dc:creator>former_member190855</dc:creator>
      <dc:date>2013-11-19T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867239#M3542455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My custom query (with genericised view names to protect the innocent) is attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, it involves multiple joins on the same view (e.g., View2 is joined twice, once as relation x and once as relation x2). View2 has ISN as one of its columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to drag this twice into my report pane - once for the first column of the report (x.ISN) and once for the 12th column (x2.ISN). Webi will not let me drag this column a second time so how do I get around it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 20:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867239#M3542455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867240#M3542456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion sounds promising - will try it and let you know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 20:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867240#M3542456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867241#M3542457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Moderators,&lt;/P&gt;&lt;P&gt;Could you move this thread to the Webi space?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 21:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867241#M3542457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T21:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867242#M3542458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Runali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried your suggestion and I was able to create two new variables ISN2 and CSP2. When I try validating my sql I still get an error "the sql query has 13 instead of 11 columns". The report structure in the "edit report" tab has 13 columns but the Result Objects pane in "Edit Query" tab only has the 11 from my universe. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get around this I dragged two more columns into the Result Objects pane that have the same data type. The sql validated fine after I did this but my results show the same value for column 12 (ISN2) as for column 1 (ISN) instead of the expected value. Guess that is because my variable is defined as &lt;/P&gt;&lt;P&gt;=[ISN] in the formula section. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I'm missing something in what you said. The webi product guide says nothing about any of this! Help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. apologies for continuing this in the non-webi forum. . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 22:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867242#M3542458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T22:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867243#M3542459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to remove two columns from your custom SQL for this error... May be the old two columns are still there..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 00:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867243#M3542459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-20T00:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating columns in report (to support custom SQL)</title>
      <link>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867244#M3542460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am suggesting is say you have requirement of showing columns C1, C2, C3,....C11 and C12=C1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your Query dont add any dummy extra objects. Add only objects C1 through C11 and you dont need to use custom SQL unless you need it for any other purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running the query, add all the 11 objects to a table. Create a variable with formula =C1&lt;/P&gt;&lt;P&gt;Insert a column to the right of the table and type in =variable in the formula box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/327122" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/327123" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes it clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 00:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/repeating-columns-in-report-to-support-custom-sql/qaa-p/9867244#M3542460</guid>
      <dc:creator>former_member190855</dc:creator>
      <dc:date>2013-11-20T00:28:48Z</dc:date>
    </item>
  </channel>
</rss>

