<?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: Need to get subtotals for States and Cities in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007180#M101807</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="429836" data-lia-user-login="daxlearner" class="lia-mention lia-mention-user"&gt;daxlearner&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jan 2023 01:12:32 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-01-08T01:12:32Z</dc:date>
    <item>
      <title>Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007129#M101803</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with Dax measure, need a Subtotals for States and cities individually&lt;/P&gt;&lt;P&gt;Used&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Sales = Calculate(SUM(table(sales),Allselected(table),Removefilters(Table(Cities))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this im able to get answer if i filter for individual state and all cities belong to that state, But when i select more than 2 states getting total sum of those states,But my goal to get individual total sales like below snip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 21:58:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007129#M101803</guid>
      <dc:creator>daxlearner</dc:creator>
      <dc:date>2023-01-07T21:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007180#M101807</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="429836" data-lia-user-login="daxlearner" class="lia-mention lia-mention-user"&gt;daxlearner&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 01:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007180#M101807</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-08T01:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007268#M101811</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,Thank&amp;nbsp; you very much for responding to my post.Please check details below&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;City&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Actual Total Sales&lt;/TD&gt;&lt;TD&gt;Expected Total Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;California&lt;/TD&gt;&lt;TD&gt;San Francisco&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;California&lt;/TD&gt;&lt;TD&gt;Los Angeles&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Florida&lt;/TD&gt;&lt;TD&gt;Tampa&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Florida&lt;/TD&gt;&lt;TD&gt;Tampa&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 04:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007268#M101811</guid>
      <dc:creator>daxlearner</dc:creator>
      <dc:date>2023-01-08T04:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007504#M101836</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="429836" data-lia-user-login="daxlearner" class="lia-mention lia-mention-user"&gt;daxlearner&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Sales =
CALCULATE (
    SUM ( 'Table'[sales] ),
    ALLEXCEPT (
        'Table',
        'Table'[State]
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 08 Jan 2023 15:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007504#M101836</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-08T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007580#M101849</link>
      <description>&lt;P&gt;Thank You for reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,that measure gives Total States Sales,my goal to get State wide total,Ie Field value total.&lt;BR /&gt;Could you Please check below Post.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 18:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007580#M101849</guid>
      <dc:creator>daxlearner</dc:creator>
      <dc:date>2023-01-08T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007615#M101853</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="429836" data-lia-user-login="daxlearner" class="lia-mention lia-mention-user"&gt;daxlearner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if I fully understand. Please try&lt;/P&gt;
&lt;P&gt;Total Sales =&lt;BR /&gt;CALCULATE ( SUM ( 'Table'[sales] ), ALLSELECTED ( 'Table'[City] ) )&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 19:22:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3007615#M101853</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-08T19:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get subtotals for States and Cities</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3008131#M101915</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="429836" data-lia-user-login="daxlearner" class="lia-mention lia-mention-user"&gt;daxlearner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[State]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the outcome you expect? If not, please show the picture of your desired result.&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 06:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-get-subtotals-for-States-and-Cities/m-p/3008131#M101915</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-01-09T06:11:58Z</dc:date>
    </item>
  </channel>
</rss>

