<?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: SAC: Calculate number of headcount using a calculated measure in model in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712279#M4770396</link>
    <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;I cant find the vote options under the comments you provided. Is there anywhere else for me to vote your answer?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yanice&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 01:31:12 GMT</pubDate>
    <dc:creator>former_member837245</dc:creator>
    <dc:date>2023-02-23T01:31:12Z</dc:date>
    <item>
      <title>SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaq-p/12712270</link>
      <description>&lt;P&gt;Dear SAC Expert,&lt;/P&gt;
  &lt;P&gt;Is it possible to create a calculated measure in the model to calculate the total number of headcount based on the active employee which has data populated in the model? Kindly advise.&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Yanice&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 09:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaq-p/12712270</guid>
      <dc:creator>former_member837245</dc:creator>
      <dc:date>2023-02-21T09:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712271#M4770388</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;yanicewengyee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can you put up an example of what kind of data you have in model and what you expect. If you have an attribute in employee which indicates if the employee is active/not, you can use it to derive  a headcount based on that.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 10:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712271#M4770388</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-21T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712272#M4770389</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;Take below as an example. I would like to create a calculated measure (Eg. Number of Employee) which able to calculate the total number of employees from the same profit center &amp;amp; cost center. Is it doable to create such calculated measure in the model? The idea is once I pull the calculated measure "Number of Employee" into report, it should be able to show "2". Kindly advise.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139844-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yanice&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 10:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712272#M4770389</guid>
      <dc:creator>former_member837245</dc:creator>
      <dc:date>2023-02-21T10:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712273#M4770390</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;yanicewengyee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure if got the image right. You second column looks like an employee dimension. If you just create a Aggregation measure of type count dimension on this column it should give you a headcount. Else you can go for calculated measure like below over your employee dimension. You might have to create another aggregation on top of this to have an exception aggregation over time so that headcounts do not get added up across time but get aggregated over other dimensions like cost center, profit center etc.&lt;/P&gt;&lt;P&gt;Example is based on customer count&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF(NOT(ISNULL([d/"SAP_CEP_SALES_PLANNING":SAP_CEP_CUSTOMER])) ,1 ,0 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Aggregation Measure over above measure to get right aggregation&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139052-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Output: Q1 count  is not getting aggregated but count over customer hierrachy is getting aggregated.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139051-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 10:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712273#M4770390</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-21T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712274#M4770391</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;Thanks a lot for the input. I think for our situation it's better to create a Aggregation measure of type count dimension in the model. We are actually building the report using SAP Analytics Cloud Microsoft Office Add-In, hence not able to create the calculated measure as suggested by you. Can you please advise if we able to create the aggregation measure in the model like below? I tried to create a calculated measure like below but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139851-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yanice&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 11:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712274#M4770391</guid>
      <dc:creator>former_member837245</dc:creator>
      <dc:date>2023-02-21T11:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712275#M4770392</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;yanicewengyee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My previous example was from Account Model but I recreated an example from a Measure based model. Modelling an example based on orders as i do not have employees. Your formula looks ok but you will need one aggregated measure over it to get the right aggregation. Ad all dimensions over which you want to aggregate the head count on like CC, PC Comp code etc. The date aggregation will be taken as last from original measure. See an example below.&lt;/P&gt;&lt;P&gt;Order Count: Aggr Type Last will ensure I get correct numbers even on quarters and Years&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139053-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Aggregated Order Count: To get correct aggregation over other dimensions&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139054-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Even if you remove Order Id the aggregated measure will work correct but original measure will not show anything without it.&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 11:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712275#M4770392</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-21T11:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712276#M4770393</link>
      <description>&lt;P&gt;Also I am not sure of what all dimensions you have in your model. You can try setting the exception aggregation Headcount  as Sum and in Exception aggregation dimension you can put all dimensions except time. That way you may not need second aggregation.&lt;/P&gt;&lt;P&gt;Nikhil &lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 11:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712276#M4770393</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-21T11:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712277#M4770394</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;Thank you so much for the idea and suggestion! We are able to achieve the outcome we want.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yanice&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 10:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712277#M4770394</guid>
      <dc:creator>former_member837245</dc:creator>
      <dc:date>2023-02-22T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712278#M4770395</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;yanicewengyee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You marked your question itself as the right answer. Could you correct that please.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 10:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712278#M4770395</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-22T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712279#M4770396</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;I cant find the vote options under the comments you provided. Is there anywhere else for me to vote your answer?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yanice&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 01:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712279#M4770396</guid>
      <dc:creator>former_member837245</dc:creator>
      <dc:date>2023-02-23T01:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAC: Calculate number of headcount using a calculated measure in model</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712280#M4770397</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;yanicewengyee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have converted my comments to answers. You can upvote/accept if it answered your query.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 04:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-calculate-number-of-headcount-using-a-calculated-measure-in-model/qaa-p/12712280#M4770397</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-02-23T04:30:12Z</dc:date>
    </item>
  </channel>
</rss>

