<?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: Calculating groups in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2851326#M91418</link>
    <description>&lt;P&gt;Hi Eason,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for the help. It all make sense, except the "Online Sales" line as I cant get it to subtract the [Providers Sales]. Do I need a RemoveFilter to calculate the [Providers Sales] or how do I get it to link with the "Online Sales" row?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 12:41:52 GMT</pubDate>
    <dc:creator>Molin</dc:creator>
    <dc:date>2022-10-19T12:41:52Z</dc:date>
    <item>
      <title>Calculating groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2849876#M91307</link>
      <description>&lt;P&gt;Dear community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am facing a challenge to group sales from a fairly simple table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The table have total sales generated on both "OrderType" and "SalesChannel" which sums up to the same. However I would like to change the setup with the following needs, preferably through dax (running direct query):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Dining-In Sales" should only appear once&lt;/LI&gt;&lt;LI&gt;"Pick-Up Sales" should be zeroed&lt;/LI&gt;&lt;LI&gt;"Online Sales" should be calculated as follows: Online Sales - all Providers Sales&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The decired result you can see on the right hand side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 20:39:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2849876#M91307</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-10-18T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2851118#M91392</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272412" data-lia-user-login="Molin" class="lia-mention lia-mention-user"&gt;Molin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need create another measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Sales =
SWITCH (
    MAX ( 'Table'[Provider] ),
    "Dining-In Sales", BLANK (),
    "Pick-Up Sale", 0,
    "Online Sales", [Online Sales] - [Providers Sales],
    [Sales]
)
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:43:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2851118#M91392</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-10-19T10:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2851326#M91418</link>
      <description>&lt;P&gt;Hi Eason,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for the help. It all make sense, except the "Online Sales" line as I cant get it to subtract the [Providers Sales]. Do I need a RemoveFilter to calculate the [Providers Sales] or how do I get it to link with the "Online Sales" row?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 12:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-groups/m-p/2851326#M91418</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-10-19T12:41:52Z</dc:date>
    </item>
  </channel>
</rss>

