<?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: ALLEXCEPT not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118518#M16441</link>
    <description>By the way... ALLEXCEPT is a very dangerous function. To know when to use it you have to study it in great depth.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Tue, 26 May 2020 01:17:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-26T01:17:13Z</dc:date>
    <item>
      <title>ALLEXCEPT not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118440#M16432</link>
      <description>&lt;P&gt;I am trying to remove row context of specific columns. I am trying to return a % of total sales relevent to a specific sales channel for each product. In otherwords every product when viewed across each channel would total 100%. To do this I am creating a VAR totalSales which should calculate total sales for each product across total market. However my current result is giving me a % of total sales for all products and all markets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate anyone who can try and help point me in the right direction as I have not been able to solve this for the last few days!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Channel A&lt;/TD&gt;&lt;TD&gt;Channel B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brand A&lt;/TD&gt;&lt;TD&gt;65%&lt;/TD&gt;&lt;TD&gt;35%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Product A&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;TD&gt;60%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Product C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;70%&lt;/TD&gt;&lt;TD&gt;30%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dol SOT CY = 
VAR totalSales = 
    calculate(
        SUM(Data[Dollars]),
        ALLEXCEPT(Data,Data[Product])
        )
           
Var sales = SUM(Data[Dollars])
   
 Return
    sales/totalSales&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 22:30:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118440#M16432</guid>
      <dc:creator>hamishpolson</dc:creator>
      <dc:date>2020-05-25T22:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118516#M16440</link>
      <description>&lt;P&gt;Probably something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[Total] = SUM( Data[Dollars] )

[Dol SOT CY] = 
VAR __totalAcrossMarkets = 
    CALCULATE(
        [Total],
		VALUES( Data[Product] ),
		ALL( Data )
	)    
VAR __currentTotal = [Total]
VAR __result =
	DIVIDE( __total, __totalAcrossMarkets )
RETURN
	__result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 01:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118516#M16440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T01:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118518#M16441</link>
      <description>By the way... ALLEXCEPT is a very dangerous function. To know when to use it you have to study it in great depth.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 26 May 2020 01:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-not-working/m-p/1118518#M16441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T01:17:13Z</dc:date>
    </item>
  </channel>
</rss>

