<?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: Category wise sum in table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599586#M75108</link>
    <description>&lt;P&gt;the above one is not working, sumx(table and Expression only)&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 06:45:14 GMT</pubDate>
    <dc:creator>rajuctech</dc:creator>
    <dc:date>2022-06-24T06:45:14Z</dc:date>
    <item>
      <title>Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599452#M75104</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a below query sum up the category wise value, but the DAX is not giving the correct results.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;L2_L5_Sum =&lt;BR /&gt;var P=SELECTEDVALUE('Calander'[Year])&lt;BR /&gt;var a=CALCULATE(SUM('tbl'[Value]),'tbl'[Category]="L2")&lt;BR /&gt;var b=CALCULATE(SUM('tbl'[Value]),'tbl[ategory]="L3")&lt;BR /&gt;var c=CALCULATE(SUM('tbl'[Value]),'tbl'[Category]="L5",'Calander'[Year]=P)&lt;BR /&gt;var x=a+b+c&lt;BR /&gt;Return&lt;BR /&gt;x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion would be fine.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 05:55:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599452#M75104</guid>
      <dc:creator>rajuctech</dc:creator>
      <dc:date>2022-06-24T05:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599468#M75106</link>
      <description>&lt;P&gt;try&amp;nbsp; sumx&lt;BR /&gt;&lt;SPAN&gt;var a=CALCULATE(SUMX('tbl'[Category], [Values]),'tbl'[Category]="L2")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 06:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599468#M75106</guid>
      <dc:creator>NilR</dc:creator>
      <dc:date>2022-06-24T06:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599586#M75108</link>
      <description>&lt;P&gt;the above one is not working, sumx(table and Expression only)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 06:45:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2599586#M75108</guid>
      <dc:creator>rajuctech</dc:creator>
      <dc:date>2022-06-24T06:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2601037#M75171</link>
      <description>&lt;P&gt;try this then:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE ( SUM( 'Table '[ValueS] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Category ] = MAX ( 'Table'[Category ]&amp;nbsp; &amp;amp;&amp;amp; [Category ="L2") ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 16:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2601037#M75171</guid>
      <dc:creator>NilR</dc:creator>
      <dc:date>2022-06-24T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2605351#M75413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381106" data-lia-user-login="rajuctech" class="lia-mention lia-mention-user"&gt;rajuctech&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SumOfVal = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Category] IN {"L2","L3","L4","L5"}))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks like this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, attached the pbix file as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 01:46:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2605351#M75413</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-28T01:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Category wise sum in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2608294#M75560</link>
      <description>&lt;P&gt;Thank you very much msft, it's working fine.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 04:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Category-wise-sum-in-table/m-p/2608294#M75560</guid>
      <dc:creator>rajuctech</dc:creator>
      <dc:date>2022-06-29T04:15:07Z</dc:date>
    </item>
  </channel>
</rss>

