<?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 Re: How to summarize measures in a matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-measures-in-a-matrix/m-p/2568675#M73268</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397847" data-lia-user-login="patrabas" class="lia-mention lia-mention-user"&gt;patrabas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can through&amp;nbsp;SUMX() to summarize measures . You can refer to the following 2 cases .&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 09:19:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-09T09:19:52Z</dc:date>
    <item>
      <title>How to summarize measures in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-measures-in-a-matrix/m-p/2561385#M72877</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to PowerBi, here is the pbix I'm using&amp;nbsp;&lt;A title="test.pbix" href="https://github.com/pabascal/powerbi/blob/main/.github/workflows/test.pbix?raw=true" target="_blank" rel="noopener"&gt;test.pbix&lt;/A&gt;&amp;nbsp; (I cannot find the attach file button in this post&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aiming to create this table using PowerBi (as you can see it's summarized):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My database looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Given two input dates: month1 (calendar_init) and month2 (calendar_end),&amp;nbsp;I need to do the following calculations. I have split my problem in 3 parts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BASELINE --&amp;gt; Get the row where type = "baseline" and month = month1&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FULL PERIOD COST --&amp;gt; Add a new row whose values are all 0 except type="Full Period Cost (existing VMs)" and whose period cost is (yearlyCost/365)*30-periodCost where ow is BASELINE previously calculated&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;REST OF ROWS --&amp;gt; Select (yearlyCost/365)*30 where month &amp;gt;= month1 and month &amp;lt;= month2&amp;nbsp;and type &amp;lt;&amp;gt; "baseline"&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a new table called Movements which is the union of the 3 parts described above as it follows:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But since I'm using measures I cannot summarize them as the reference to the measures get lost...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I group them so I don't have multiple rows with the same type?&lt;/LI&gt;&lt;LI&gt;How can I totalize each column?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-measures-in-a-matrix/m-p/2561385#M72877</guid>
      <dc:creator>patrabas</dc:creator>
      <dc:date>2022-06-06T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize measures in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-measures-in-a-matrix/m-p/2568675#M73268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397847" data-lia-user-login="patrabas" class="lia-mention lia-mention-user"&gt;patrabas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can through&amp;nbsp;SUMX() to summarize measures . You can refer to the following 2 cases .&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-measures-in-a-matrix/m-p/2568675#M73268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-09T09:19:52Z</dc:date>
    </item>
  </channel>
</rss>

