<?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 Calculated column on Cube Analytical CDS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculated-column-on-cube-analytical-cds/m-p/12631499#M2013409</link>
    <description>&lt;P&gt;Hi Gurus, I'm facing an issue which I'm not able to fix.&lt;/P&gt;
  &lt;P&gt;I have a CDS labeled as an analytical cube:&lt;BR /&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116457-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And all the measures included in the cube are aggregated in the form of addition:&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116458-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now, I needed to add some new calculated columns, being a division between two aggregated columns. I tried using the aggregation in the form of formula, so the calculated columns are calculated after the measures have been aggregated. That sounded perfect for my requirement.&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116459-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However, this is not working at all, because when trying to activate I'm having an error stating:&lt;BR /&gt;Element contains unsupported aggregation #FORMULA [Analytics].&lt;/P&gt;
  &lt;P&gt;So, I'm wondering how to achieve this. I just need to run calculations after the aggregations, but still no luck on this.&lt;/P&gt;
  &lt;P&gt;Have you ever faced same situation? Any tip?&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 10:00:40 GMT</pubDate>
    <dc:creator>Alvaro_AH</dc:creator>
    <dc:date>2022-11-18T10:00:40Z</dc:date>
    <item>
      <title>Calculated column on Cube Analytical CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculated-column-on-cube-analytical-cds/m-p/12631499#M2013409</link>
      <description>&lt;P&gt;Hi Gurus, I'm facing an issue which I'm not able to fix.&lt;/P&gt;
  &lt;P&gt;I have a CDS labeled as an analytical cube:&lt;BR /&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116457-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And all the measures included in the cube are aggregated in the form of addition:&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116458-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now, I needed to add some new calculated columns, being a division between two aggregated columns. I tried using the aggregation in the form of formula, so the calculated columns are calculated after the measures have been aggregated. That sounded perfect for my requirement.&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116459-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However, this is not working at all, because when trying to activate I'm having an error stating:&lt;BR /&gt;Element contains unsupported aggregation #FORMULA [Analytics].&lt;/P&gt;
  &lt;P&gt;So, I'm wondering how to achieve this. I just need to run calculations after the aggregations, but still no luck on this.&lt;/P&gt;
  &lt;P&gt;Have you ever faced same situation? Any tip?&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculated-column-on-cube-analytical-cds/m-p/12631499#M2013409</guid>
      <dc:creator>Alvaro_AH</dc:creator>
      <dc:date>2022-11-18T10:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column on Cube Analytical CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculated-column-on-cube-analytical-cds/m-p/12631500#M2013410</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;@Aggregation.default: #FORMULA&lt;BR /&gt;@AnalyticsDetails.query.formula: 'NDIV0( Operand1 / Operand2 ) * 100'&lt;BR /&gt;@AnalyticsDetails.query.decimals: 2&lt;BR /&gt;1 as Result,  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Solved! By making use of formulas within the annotations in the Analytical query on top of the Cube. Note there is a need to "declare" a column for the result, which will be filled with the formula result.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculated-column-on-cube-analytical-cds/m-p/12631500#M2013410</guid>
      <dc:creator>Alvaro_AH</dc:creator>
      <dc:date>2022-11-21T15:23:40Z</dc:date>
    </item>
  </channel>
</rss>

