<?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: Measure works on rows but not subtotals in Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1121726#M16551</link>
    <description>&lt;P&gt;Hi, that doesnt work im afraid as it just adds up all the % ages into a total, the answer should be 55% and that gives 2241%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need it to apply the same calculation to the subtotals/totals as the rows, not add up all the rows calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 08:04:41 GMT</pubDate>
    <dc:creator>Matt_HD</dc:creator>
    <dc:date>2020-05-27T08:04:41Z</dc:date>
    <item>
      <title>Measure works on rows but not subtotals in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1119037#M16459</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some data (all on one table) that i'm summarising in a matrix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table is as follows ( other columns redacted) there are many rows and the name is 'CTS Budget Course Volume'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Course&amp;nbsp; &amp;nbsp; Value&amp;nbsp; Budget Total Attendees&amp;nbsp; Trainer Ratio&amp;nbsp; Capacity per Course&amp;nbsp; &amp;nbsp;Date&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;H&amp;amp;S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/04/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The manual calculation for Occupancy would be [Budget Total Attendees] / [Trainer Ratio] x [Value] x [Capacity Per Course]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have converted to DAX as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occupancy Budget (%) =&lt;/P&gt;&lt;P&gt;DIVIDE(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('CTS Budget Course Volume'[Budget Total Attendees]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('CTS Budget Course Volume'[Capacity per Course])*sum('CTS Budget Course Volume'[Trainer Ratio])*sum('CTS Budget Course Volume'[Value])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However on a matrix visual this works perfectly for individual courses, but I have a Date Row and the subtotals/totals dont work properly......they display 0%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a course master and date master table in the model with a simple 1 to many retalionship back to this table and this works fine accross the reso of the model so I suspect my issue is with the DAX above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 08:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1119037#M16459</guid>
      <dc:creator>Matt_HD</dc:creator>
      <dc:date>2020-05-26T08:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measure works on rows but not subtotals in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1119048#M16461</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226117" data-lia-user-login="Matt_HD" class="lia-mention lia-mention-user"&gt;Matt_HD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this. I assume you want the total to add up the individual rows results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Occupancy Budget (%) TOT = &lt;/P&gt;
&lt;P&gt;SUMX( SUMMARIZE(Table1, Table1[Col1], Table1[Col2], add all other columns in the visual here), [Occupancy Budget (%)] )&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 08:16:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1119048#M16461</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-26T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure works on rows but not subtotals in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1121726#M16551</link>
      <description>&lt;P&gt;Hi, that doesnt work im afraid as it just adds up all the % ages into a total, the answer should be 55% and that gives 2241%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need it to apply the same calculation to the subtotals/totals as the rows, not add up all the rows calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-works-on-rows-but-not-subtotals-in-Matrix/m-p/1121726#M16551</guid>
      <dc:creator>Matt_HD</dc:creator>
      <dc:date>2020-05-27T08:04:41Z</dc:date>
    </item>
  </channel>
</rss>

