<?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: DAX ALL() not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/769989#M3634</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Thanks for your response but what I want is for % Division to stay at 63% &amp;amp; 36% regardless of what filter is applied, in this case agent.&lt;/P&gt;&lt;P&gt;Is there a way to ignore all filters or specify what filters to ignore in order to satisfy my requirement?&lt;/P&gt;&lt;P&gt;I've tried ALL, ALLSELECTED and ALLEXCEPT&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 15:13:34 GMT</pubDate>
    <dc:creator>Sureshot</dc:creator>
    <dc:date>2019-08-19T15:13:34Z</dc:date>
    <item>
      <title>DAX ALL() not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/768595#M3557</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have a Matrix with 4 columns as follows:&lt;/P&gt;&lt;P&gt;Line Of Business - Current Year - % of Total - % Division&lt;/P&gt;&lt;P&gt;Liability&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- $47,993,349&amp;nbsp; - 63%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - 63%&lt;/P&gt;&lt;P&gt;Property&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - $27,765,694&amp;nbsp; - 36%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - 36%&lt;/P&gt;&lt;P&gt;Umbrella&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- $358,047&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; 0%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; 0%&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - $76,117,090&amp;nbsp; - 100%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; 100%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I filter by a specific agent I get:&lt;/P&gt;&lt;P&gt;Line Of Business - Current Year - % of Total - % Division&lt;/P&gt;&lt;P&gt;Liability&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- $661,413&amp;nbsp; &amp;nbsp; &amp;nbsp; - 49%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 1%&lt;/P&gt;&lt;P&gt;Property&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - $695,683&amp;nbsp; &amp;nbsp; &amp;nbsp; - 51%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 1%&lt;/P&gt;&lt;P&gt;Umbrella&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- $2,826&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; 0%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; 0%&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - $1,359,922&amp;nbsp; &amp;nbsp; - 100%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; 2%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The FACT Table is the source for the Current Year value.&lt;/P&gt;&lt;P&gt;The FACT table is filtered by an Agent Dimension and both are joined on AgentCode.&lt;/P&gt;&lt;P&gt;I need the % Division field to not change when the Agent Filter is applied (in fact when any dimension filter is applied).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is my DAX but the ALL() does not ignore the filters.&lt;/P&gt;&lt;P&gt;% Division = DIVIDE(SUM('Agency Scorecard 3a'[Business DWP]), CALCULATE(SUM('Agency Scorecard 3a'[Business DWP]), ALL()),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 13:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/768595#M3557</guid>
      <dc:creator>Sureshot</dc:creator>
      <dc:date>2019-08-16T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ALL() not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/769030#M3581</link>
      <description>&lt;P&gt;ALL works exxectly as designed here - it does remove all the filters, including the one you put on the specific agent&lt;/P&gt;&lt;P&gt;it basically does&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;661,413/7,611,709 ~= 1% &lt;BR /&gt;agent specific sales divided by total sales&lt;/PRE&gt;&lt;P&gt;rather than what you want&lt;/P&gt;&lt;PRE&gt;661,413/1,359,922 ~=49%&lt;BR /&gt;agent specific sales divided by agent specific total sales&lt;/PRE&gt;&lt;P&gt;you may want to use ALLSELECTED or ALLEXCEPT instead&lt;/P&gt;&lt;P&gt;also you can have a read here&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/" target="_blank"&gt;https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank"&gt;https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 04:19:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/769030#M3581</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-08-17T04:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ALL() not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/769989#M3634</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Thanks for your response but what I want is for % Division to stay at 63% &amp;amp; 36% regardless of what filter is applied, in this case agent.&lt;/P&gt;&lt;P&gt;Is there a way to ignore all filters or specify what filters to ignore in order to satisfy my requirement?&lt;/P&gt;&lt;P&gt;I've tried ALL, ALLSELECTED and ALLEXCEPT&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/769989#M3634</guid>
      <dc:creator>Sureshot</dc:creator>
      <dc:date>2019-08-19T15:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ALL() not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/770005#M3638</link>
      <description>&lt;P&gt;Right now you only remove filters for the denominator, for nominator you want to remove all filters except for the Line of Business&lt;/P&gt;&lt;P&gt;e.g. like this&lt;/P&gt;&lt;PRE&gt;% Division =
VAR __Nominator =
    CALCULATE (
        SUM ( 'Agency Scorecard 3a'[Business DWP] ),
        ALLEXCEPT ( &lt;FONT color="#3366FF"&gt;'Agency Scorecard 3a', 'Agency Scorecard 3a'&lt;/FONT&gt;[Line Of Business] )
    )
VAR __Denominator =
    CALCULATE ( SUM ( 'Agency Scorecard 3a'[Business DWP] ), ALL () )
RETURN
    DIVIDE ( __Nominator, __Denominator, 0 )&lt;/PRE&gt;&lt;P&gt;you may need to adjust the table name for the nominator&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:36:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/770005#M3638</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-08-19T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ALL() not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/770010#M3640</link>
      <description>&lt;P&gt;That worked - you're a genius!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-ALL-not-working/m-p/770010#M3640</guid>
      <dc:creator>Sureshot</dc:creator>
      <dc:date>2019-08-19T15:41:56Z</dc:date>
    </item>
  </channel>
</rss>

