<?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 Dividing measures of sums from same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-measures-of-sums-from-same-table/m-p/3374469#M157560</link>
    <description>&lt;P&gt;Hello, I have a table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 2&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 2&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have two measurements :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Plan Cost = Calculate(SUM(CostTable[Cost]), CostTable[Type] &amp;lt;&amp;gt; "Actual")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Total Actual Cost = Calculate(SUM(CostTable[Cost]), CostTable[Type] = "Actual")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to make a third measurement that calculates % spent of plan for each plan by dividing the actual cost with the cost plans. I do not want the measure to calculate actual cost / actual cost. This measure along with the others I want to put into a matrix similar to:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But under each type column the % spent should appear except for the actual cost column.&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;Also is there anyway to customly order the columns ?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 14:34:18 GMT</pubDate>
    <dc:creator>314mp_M0th4</dc:creator>
    <dc:date>2023-08-10T14:34:18Z</dc:date>
    <item>
      <title>Dividing measures of sums from same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-measures-of-sums-from-same-table/m-p/3374469#M157560</link>
      <description>&lt;P&gt;Hello, I have a table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 2&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan 2&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have two measurements :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Plan Cost = Calculate(SUM(CostTable[Cost]), CostTable[Type] &amp;lt;&amp;gt; "Actual")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Total Actual Cost = Calculate(SUM(CostTable[Cost]), CostTable[Type] = "Actual")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to make a third measurement that calculates % spent of plan for each plan by dividing the actual cost with the cost plans. I do not want the measure to calculate actual cost / actual cost. This measure along with the others I want to put into a matrix similar to:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But under each type column the % spent should appear except for the actual cost column.&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;Also is there anyway to customly order the columns ?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-measures-of-sums-from-same-table/m-p/3374469#M157560</guid>
      <dc:creator>314mp_M0th4</dc:creator>
      <dc:date>2023-08-10T14:34:18Z</dc:date>
    </item>
  </channel>
</rss>

