5 Replies Latest reply on Sep 11, 2015 7:32 AM by user12233622

    Change subject area in a analysis

    user12233622

      Hello,

      I wonder if you can change the "subject area" on a report already provided it has the same dimensions and measures with the same names ?

      Thanks

        • 1. Re: Change subject area in a analysis
          Gianni Ceresa

          Hi,

          Yes you can ...

          Go to the Advanced tab of your analysis and change it in the Analysis XML.

           

          One of the first lines must be something like this:

          <saw:criteria xsi:type="saw:simpleCriteria" subjectArea="&quot;A - Sample Sales&quot;">
          
          

           

          So just change the value of the "subjectArea" attribute and click "apply XML" to validate the change.

           

          PS: really pay attention how you write it, the &quot; and other encoded characters as it's XML ...

          1 person found this helpful
          • 2. Re: Change subject area in a analysis
            Ebin

            Hi,

             

            You can change the Subject Area name by editing the report XML.

             

            <saw:report xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlVersion="201201160" xmlns:sawx="com.siebel.analytics.web/expression/v1.1">  

               <saw:criteria xsi:type="saw:simpleCriteria" subjectArea="&quot;Service - Activities&quot;">

             

            Edit : Gianni was faster

            • 3. Re: Re: Change subject area in a analysis
              Christian Berg

              Yes Gianni Ceresa was faster/fastest but just to mention: you might need more than that one tag if you used saved filterswhich are stored in the vanilla "Subject Area Content" folders - technically _filters folders.

               

              <saw:report xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlVersion="201201160" xmlns:sawx="com.siebel.analytics.web/expression/v1.1">
                 <saw:criteria xsi:type="saw:simpleCriteria" subjectArea="&quot;A - Sample Sales&quot;">
                    <saw:columns>
                       <saw:column xsi:type="saw:regularColumn" columnID="c1e6213f02eeea457">
                          <saw:columnFormula>
                             <sawx:expr xsi:type="sawx:sqlExpression">"Time"."T05 Per Name Year"</sawx:expr></saw:columnFormula></saw:column></saw:columns>
                    <saw:filter>
                       <sawx:expr xsi:type="sawx:logical" op="and">
                          <sawx:expr xsi:type="sawx:savedFilter" path="/shared/01. QuickStart/_filters/A - Sample Sales/Short Prompted Filters" name="Short Prompted Filters"/>
                          <sawx:expr xsi:type="sawx:comparison" op="equal">
                             <sawx:expr xsi:type="sawx:sqlExpression">"Time"."T05 Per Name Year"</sawx:expr>
                             <sawx:expr xsi:type="xsd:string">2009</sawx:expr></sawx:expr></sawx:expr></saw:filter></saw:criteria>
                 <saw:views/></saw:report>
              

               

              Basically you gotta catch all occurrences.

              • 4. Re: Change subject area in a analysis
                Gianni Ceresa

                True, I generally write too much and this time it was too short (to much multitasking kills multitasking). Good addition Christian  

                • 5. Re: Change subject area in a analysis
                  user12233622

                  Thank you all!!