<?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 Calculate costs derived from another Department Category (operating vs corporate data) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2297682#M56657</link>
    <description>&lt;P&gt;I have a requirement to assign Corporate Expenses to the several Operating Departments according with the percentage of the Cost of Sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The percentage of Operating Cost of Sales per Department (% Operating Cost of Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2. The Total Corporate Expenses (Corporate Amount)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;3. The expected result is to multiply The Corporate Cost of Sales by the % of Expenses of each Operating Department.&lt;/P&gt;&lt;P&gt;The issue is that I'm not able to assing the Corporate cost on the Operating side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First row = 22,207,639.31 * 0.26%&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Last row =&amp;nbsp;22,207,639.31 * 3.13%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 05:07:01 GMT</pubDate>
    <dc:creator>gerardotrejogcg</dc:creator>
    <dc:date>2022-01-24T05:07:01Z</dc:date>
    <item>
      <title>Calculate costs derived from another Department Category (operating vs corporate data)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2297682#M56657</link>
      <description>&lt;P&gt;I have a requirement to assign Corporate Expenses to the several Operating Departments according with the percentage of the Cost of Sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The percentage of Operating Cost of Sales per Department (% Operating Cost of Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2. The Total Corporate Expenses (Corporate Amount)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;3. The expected result is to multiply The Corporate Cost of Sales by the % of Expenses of each Operating Department.&lt;/P&gt;&lt;P&gt;The issue is that I'm not able to assing the Corporate cost on the Operating side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First row = 22,207,639.31 * 0.26%&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Last row =&amp;nbsp;22,207,639.31 * 3.13%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 05:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2297682#M56657</guid>
      <dc:creator>gerardotrejogcg</dc:creator>
      <dc:date>2022-01-24T05:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate costs derived from another Department Category (operating vs corporate data)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2297788#M56660</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This kind of dax should do what you want:&lt;BR /&gt;[Allocated costs] = MAX(Table[% operating cost of sales])*CALCULATE(AVERAGE(Table[Corporate expenses]),ALL(Table),&amp;nbsp;Table[Corporate expenses]&amp;lt;&amp;gt;BLANK())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 06:18:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2297788#M56660</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-24T06:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate costs derived from another Department Category (operating vs corporate data)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2299215#M56732</link>
      <description>&lt;P&gt;I tried to adequate the provided dax with no luck.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is the expected result I want to reach.&amp;nbsp; &amp;nbsp;Corporate Expense in gray means that currently I'm not able to assign that measure for "Operaciones" (Operating Department) since the result is calculated for "Corporativo" (Corporate Department) only.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The result is limited to apply the Corporate Expense multiplied by % Operating Cost of Sales.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gcgcia-my.sharepoint.com/:f:/g/personal/gerardo_trejo_gcg_com_mx/EjsTqgtmCoRPio40ZqtvDzABsc-zmHV9Qd71aplOV8hmow?e=8c9yCE" target="_blank" rel="noopener"&gt;This is the sample data link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Operating Cost of Sales = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;CALCULATE (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;CALCULATE ( &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;'Measure Slicers'[Measure Selection P&amp;amp;L],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ALLEXCEPT ( 'Accounts P&amp;amp;L', 'Accounts P&amp;amp;L'[KPI Name] ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ALLEXCEPT( 'Dimension Sets', 'Dimension Sets'[Deparment Category] ),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FILTER ( 'Accounts P&amp;amp;L', 'Accounts P&amp;amp;L'[KPI Code] = "T200" ) --&amp;gt; Cost of Sales&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FILTER ( 'Dimension Sets', 'Dimension Sets'[Deparment Category] = "Operaciones")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;% Operating Cost of Sales = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[Amount P&amp;amp;L MXN]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Cost of Sales Operaciones]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() )&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Corporate Expense = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;[Actual Expense Amount]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Dimension Sets'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Dimension Sets'[Deparment Category]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Dimension Sets'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Dimension Sets'[Deparment Category]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Corporativo"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:32:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2299215#M56732</guid>
      <dc:creator>gerardotrejogcg</dc:creator>
      <dc:date>2022-01-24T18:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate costs derived from another Department Category (operating vs corporate data)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2304419#M57009</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248706" data-lia-user-login="gerardotrejogcg" class="lia-mention lia-mention-user"&gt;gerardotrejogcg&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Try it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAXX(ALL('Table'),[Corporate Expense])*[% Operating Cost of Sales]&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team_ Yalan Wu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 06:27:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-costs-derived-from-another-Department-Category/m-p/2304419#M57009</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-01-27T06:27:30Z</dc:date>
    </item>
  </channel>
</rss>

