<?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: calculate subtotal for each category using measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1597625#M32012</link>
    <description>&lt;P&gt;I found the solution,&lt;/P&gt;&lt;P&gt;Create another table (Master Table) without amount and date column (if you have it in same table).&lt;/P&gt;&lt;P&gt;Also should not give any relationship in model view.&lt;/P&gt;&lt;P&gt;And create the below measures there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;total= CALCULATE(SUM('Table1'[Amount]),filter(values('Table1'[No_]), 'Table1'[No_] &amp;gt;= min('Master Table'[start range]) &amp;amp;&amp;amp; 'Table1'[No_] &amp;lt;= max('Master Table'[end range])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum Amount=sum(Table1[Amount]+[total])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 16:41:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-13T16:41:38Z</dc:date>
    <item>
      <title>calculate subtotal for each category using measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1586143#M31748</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Below is my sample data,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You may have seen this Structure in Microsoft Dynamics NAV in Chart of Accounts.&lt;/P&gt;&lt;P&gt;I need to create a trial balance report in Power BI. My Visual is a Table. I want to derive the last column (sum amount) as measure in my table visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Total' column represents the start and end range of 'No_'. I need to calculate the sum of amount (highlighted in red color) between the specified ranges in 'total' column.&lt;/P&gt;&lt;P&gt;Main category to sub-categories are:&lt;/P&gt;&lt;P&gt;1) Liabilities&amp;nbsp; &amp;amp; Equities&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; i) Liabilities&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Loans&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) General Reserves&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ii) Equities&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) shares&lt;/P&gt;&lt;P&gt;To create a subtotal for each category , where the acoount type is specified as 'end total' using dax measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance....&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 10:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1586143#M31748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-07T10:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: calculate subtotal for each category using measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1586188#M31750</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You have add additional column in table to group those. or do segmentation &lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.daxpatterns.com/dynamic-segmentation/" target="_blank"&gt;https://www.daxpatterns.com/dynamic-segmentation/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.daxpatterns.com/static-segmentation/" target="_blank"&gt;https://www.daxpatterns.com/static-segmentation/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer this raditional Financial Statements&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Traditional-Financial-Statements/td-p/7223" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Traditional-Financial-Statements/td-p/7223&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 11:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1586188#M31750</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-07T11:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculate subtotal for each category using measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1597625#M32012</link>
      <description>&lt;P&gt;I found the solution,&lt;/P&gt;&lt;P&gt;Create another table (Master Table) without amount and date column (if you have it in same table).&lt;/P&gt;&lt;P&gt;Also should not give any relationship in model view.&lt;/P&gt;&lt;P&gt;And create the below measures there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;total= CALCULATE(SUM('Table1'[Amount]),filter(values('Table1'[No_]), 'Table1'[No_] &amp;gt;= min('Master Table'[start range]) &amp;amp;&amp;amp; 'Table1'[No_] &amp;lt;= max('Master Table'[end range])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum Amount=sum(Table1[Amount]+[total])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-subtotal-for-each-category-using-measure/m-p/1597625#M32012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-13T16:41:38Z</dc:date>
    </item>
  </channel>
</rss>

