<?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 and ALL function does not work as I expected in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3678045#M142807</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="178025" data-lia-user-login="boraJustmop" class="lia-mention lia-mention-user"&gt;boraJustmop&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand correctly, I don't think measure is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have interaction enabled between slicer and table visual. Disable the interaction and that way you can control which slicer impacts which visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 19:49:44 GMT</pubDate>
    <dc:creator>talespin</dc:creator>
    <dc:date>2024-02-03T19:49:44Z</dc:date>
    <item>
      <title>ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3640956#M140957</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use All/Allexcept functions in some calculations for some case scenarios. I was working with Qlik &amp;amp; QlikSense before and this is easly applicable on Qlik but I could not manage to get this done on PowerBI.&amp;nbsp; &lt;STRONG&gt;This may not be applicable on powerbi or I may not achieve to do it.&amp;nbsp; &lt;/STRONG&gt;Eveything explained on the last page(&lt;STRONG&gt;ALL &amp;amp; ALL EXCEPT Examples&lt;/STRONG&gt;), but I will give summary here again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(PBIX file :&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1ByRMdggI5MU0il0XZ8FOsXFLEh5O_Bup/view?usp=sharing" target="_self"&gt;GoogleDriveLink&lt;/A&gt;)&amp;nbsp; &amp;nbsp;Page :&amp;nbsp;ALL &amp;amp; ALL EXCEPT Examples&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I'm trying to do is,&amp;nbsp;&lt;/STRONG&gt;I want to put a few measure on a table and when I make a selection from a field, I want only some calculations get affected from that selection, and some others don't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I will put Master Date as dimension and 3 different calculation on the table. I will make a selection from &lt;STRONG&gt;Service Category field&lt;/STRONG&gt; and only &lt;STRONG&gt;1th. measure&lt;/STRONG&gt; will be affected from that selection and &lt;STRONG&gt;others don't&lt;/STRONG&gt;. Then I will make another selection from &lt;STRONG&gt;Availability field&lt;/STRONG&gt;, then &lt;STRONG&gt;2.th measure&lt;/STRONG&gt; will be affected from the selection etc...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 tables. &lt;STRONG&gt;Appoinment&lt;/STRONG&gt;, &lt;STRONG&gt;Marketing&lt;/STRONG&gt;, &lt;STRONG&gt;Utilization&lt;/STRONG&gt;, &lt;STRONG&gt;Availability&lt;/STRONG&gt;. All those 4 tables merged into &lt;STRONG&gt;appointment&lt;/STRONG&gt; &lt;STRONG&gt;table.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1: Calculation gets affected from only &lt;STRONG&gt;determined fields&lt;/STRONG&gt; in the &lt;STRONG&gt;all except&lt;/STRONG&gt; function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test Appointment Qty = 
CALCULATE(sum(Appointment[m_appointment_qty]) 
,ALLEXCEPT(Appointment
,Appointment[dim_country_id]
,Appointment[dim_country]
,Appointment[dim_master_date]
,Appointment[dim_service_category]
,Appointment[dim_promise_met])
,Appointment[table_type]="Appointment"
,Appointment[dim_calculation_type]="Original" 
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 2: Calculation will &lt;STRONG&gt;not&lt;/STRONG&gt; be affected from the &lt;STRONG&gt;determined field&lt;/STRONG&gt; selections.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test2 Appointment Qty = 
    CALCULATE(
        sum(Appointment[m_appointment_qty]) 
        ,ALL(Appointment[data_flag])
        ,ALL(Appointment[Availability])
        ,ALL(Appointment[dim_day_diff])
        ,ALL(Appointment[cleaner_id])
        ,Appointment[table_type]="Appointment"
        ,Appointment[dim_calculation_type]="Original" 
        )
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those calculations works fine if I don't put any dimension into the table but it does not work if I put any dimension. I tried it with and without &lt;STRONG&gt;FILTER&lt;/STRONG&gt; function in the calculation but I could not manage this to work with &lt;STRONG&gt;FILTER&lt;/STRONG&gt; function. When I put &lt;STRONG&gt;FILTER&lt;/STRONG&gt; in &lt;STRONG&gt;dax formula, FILTER function&lt;/STRONG&gt; does not allow me to put &lt;STRONG&gt;multiple dimensions&lt;/STRONG&gt; to tell the calculation not to affect from any selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More detailed explanation and use cases are on the page in PBIX file. I'd be so happy if you see the file and help me to write the correct DAX formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support already.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 Works fine but Table 1 will not be shown if I make any selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the uses cases as well.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 12:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3640956#M140957</guid>
      <dc:creator>boraJustmop</dc:creator>
      <dc:date>2024-01-16T12:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3642985#M141047</link>
      <description>&lt;P&gt;It seems like you're dealing with a complex scenario in Power BI where you want to control which measures are affected by user selections. The ALLEXCEPT and ALL functions in DAX are powerful tools, but it might require some adjustments in your DAX formulas to achieve the desired behavior.&lt;/P&gt;&lt;P&gt;Without having access to the PBIX file and the specific data model, it can be challenging to provide an exact solution. However, I can offer some general guidance and suggestions based on the information you've provided:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use of ALLEXCEPT:&lt;/STRONG&gt; In your first measure, you are using ALLEXCEPT to remove filters on specific columns. Make sure that the dimensions you want to exclude are correctly specified. It's essential to understand the relationships between tables and dimensions in your model.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DAX MEASURE:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Test Appointment Qty =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Appointment[m_appointment_qty]),&lt;BR /&gt;ALLEXCEPT(&lt;BR /&gt;Appointment,&lt;BR /&gt;Appointment[dim_country_id],&lt;BR /&gt;Appointment[dim_country],&lt;BR /&gt;Appointment[dim_master_date],&lt;BR /&gt;Appointment[dim_service_category],&lt;BR /&gt;Appointment[dim_promise_met]&lt;BR /&gt;),&lt;BR /&gt;Appointment[table_type] = "Appointment",&lt;BR /&gt;Appointment[dim_calculation_type] = "Original"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use of ALL:&lt;/STRONG&gt;&lt;SPAN&gt; In your second measure, you are using ALL to remove filters on specific columns. Ensure that the columns you are excluding have the desired effect. Also, it's important to understand the context transition that happens in DAX calculations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DAX MEASURE:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Test2 Appointment Qty =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Appointment[m_appointment_qty]),&lt;BR /&gt;ALL(&lt;BR /&gt;Appointment[data_flag],&lt;BR /&gt;Appointment[Availability],&lt;BR /&gt;Appointment[dim_day_diff],&lt;BR /&gt;Appointment[cleaner_id]&lt;BR /&gt;),&lt;BR /&gt;Appointment[table_type] = "Appointment",&lt;BR /&gt;Appointment[dim_calculation_type] = "Original"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Context Transition:&lt;/STRONG&gt; Be aware of how context transition works in DAX. When you place a field in a table or visual, it can affect the context in which measures are evaluated. Ensure that the dimensions you are using in ALLEXCEPT and ALL are providing the correct context for your calculations.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Debugging:&lt;/STRONG&gt; Use the DAX Studio or the Power BI Performance Analyzer to debug your DAX formulas. These tools can help you understand the impact of each filter on your measures.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If the issue persists, it might be helpful to see the actual data model and sample data to provide more specific assistance. You can try simplifying your DAX expressions and gradually adding complexity to identify where the issue arises. Additionally, consider using DAX variables to break down complex calculations into smaller, more manageable parts.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 08:20:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3642985#M141047</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-17T08:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3642996#M141051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="178025" data-lia-user-login="boraJustmop" class="lia-mention lia-mention-user"&gt;boraJustmop&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify your dax formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Test2 Appointment Qty = 
CALCULATE(
    SUM(Appointment[m_appointment_qty]),
    ALL(
        Appointment[data_flag],
        Appointment[Availability],
        Appointment[dim_day_diff],
        Appointment[cleaner_id]
    ),
    Appointment[table_type] = "Appointment",
    Appointment[dim_calculation_type] = "Original"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 08:24:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3642996#M141051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3650910#M141433</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recommended solutions did not work. As I attached the screenshot, by availability &amp;amp; dim_day_diff selection, I expect table 1 and table 3 should not be effected.&amp;nbsp;&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>Mon, 22 Jan 2024 07:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3650910#M141433</guid>
      <dc:creator>boraJustmop</dc:creator>
      <dc:date>2024-01-22T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3651149#M141445</link>
      <description>&lt;P&gt;This I understand&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"What I'm trying to do is,&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;I want to put a few measure on a table and when I make a selection from a field, I want only some calculations get affected from that selection, and some others don't."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry i could not fully understand the details, can you please simplify your requirement. I saw the file, there are many table visuals and measures. Can you please keep one measure for starter and explain what should impact this measure and what should not&lt;/P&gt;&lt;P&gt;(explicitly mentioning whether you are referring to a slicer or attribute in visual.&amp;nbsp;"when I make a selection from a field" - Please explain. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 08:51:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3651149#M141445</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-01-22T08:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3675483#M142676</link>
      <description>&lt;P&gt;Basicly , when I make a selection from &lt;STRONG&gt;avaiability&lt;/STRONG&gt; field&amp;nbsp; table that based on &lt;STRONG&gt;service category&lt;/STRONG&gt;, should not be affected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;AS you see on the SS, &lt;STRONG&gt;availability field selected&lt;/STRONG&gt; and &lt;STRONG&gt;TABLE 1 does not show&lt;/STRONG&gt; any value but formula includes&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALL (availability)&amp;nbsp; etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the efford &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:52:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3675483#M142676</guid>
      <dc:creator>boraJustmop</dc:creator>
      <dc:date>2024-02-02T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALLEXCEPT and ALL function does not work as I expected in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3678045#M142807</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="178025" data-lia-user-login="boraJustmop" class="lia-mention lia-mention-user"&gt;boraJustmop&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand correctly, I don't think measure is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have interaction enabled between slicer and table visual. Disable the interaction and that way you can control which slicer impacts which visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 19:49:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLEXCEPT-and-ALL-function-does-not-work-as-I-expected-in-DAX/m-p/3678045#M142807</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-03T19:49:44Z</dc:date>
    </item>
  </channel>
</rss>

