<?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 FILTER with multiple criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2256238#M54459</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you followed the DAX formula posted by ValtteriN to find the solution to your problem?&lt;/P&gt;
&lt;P&gt;If so, would you like to mark his reply as a solution so that others can learn from it too?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Dec 2021 02:58:57 GMT</pubDate>
    <dc:creator>v-robertq-msft</dc:creator>
    <dc:date>2021-12-27T02:58:57Z</dc:date>
    <item>
      <title>DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252683#M54310</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need help here. I need to calculate a measure and for doing so need to apply multiple filters to obtain the desired value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried some options suggested in this forum like the ones appointed by&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/148838" target="_blank"&gt;@amitchandak&lt;/A&gt;&amp;nbsp;in this previous post&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Filter-data-based-on-multiple-criteria-in-same-column/m-p/2057349#M768659" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Filter-data-based-on-multiple-criteria-in-same-column/m-p/2057349#M768659&lt;/A&gt;&amp;nbsp;,&amp;nbsp;but for some reason, my DAX doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX I'm using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Back Charge Int.Cost = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[Back Charge Cost]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[OPL]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"CECO"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"METALLIC"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"STAR"&lt;/SPAN&gt;&lt;SPAN&gt;}),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[Selling Brand]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"Drafting"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Engineering"&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I also tried this version:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;Back Charge Int.Cost = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[Back Charge Cost]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[OPL]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"CECO"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"METALLIC"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"STAR"&lt;/SPAN&gt;&lt;SPAN&gt;} &amp;amp;&amp;amp; 'Back Charge Data'[Selling Brand] in {"Drafting", "Engineering"}),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252683#M54310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-22T21:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252716#M54319</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Calculate has a built in [filter] places in its expression and thus you don't need to add FILTER to your calculation. Something like this should work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Back Charge Int.Cost =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Back Charge Data'[Back Charge Cost]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;BR /&gt;all('Back Charge Data'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Back Charge Data'[OPL]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;SPAN&gt;"CECO"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"METALLIC"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"STAR"&lt;/SPAN&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Back Charge Data'[Selling Brand]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;SPAN&gt;"Drafting"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Engineering"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here I added ALL to remove other filters affecting the calculation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope this helps to solve your issue and if it does consider accepting this post as a solution and giving it a thumbs up!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2021 22:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252716#M54319</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-22T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252738#M54320</link>
      <description>&lt;P&gt;I don't see anything necessarily wrong with your DAX although it would be a bit more efficient to write it like this:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Back Charge Int.Cost =
CALCULATE (
    SUM ( 'Back Charge Data'[Back Charge Cost] ),
    KEEPFILTERS ( 'Back Charge Data'[OPL] IN { "CECO", "METALLIC", "STAR" } ),
    KEEPFILTERS ( 'Back Charge Data'[Selling Brand] IN { "Drafting", "Engineering" } )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what you mean by "my DAX doesn't work"? Are you getting an error? Are you expecting it to act differently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking for a version that replaces local filters rather than adding to them like this?&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Back Charge Int.Cost =
CALCULATE (
    SUM ( 'Back Charge Data'[Back Charge Cost] ),
    'Back Charge Data'[OPL] IN { "CECO", "METALLIC", "STAR" },
    'Back Charge Data'[Selling Brand] IN { "Drafting", "Engineering" }
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 22:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2252738#M54320</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-22T22:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2256238#M54459</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you followed the DAX formula posted by ValtteriN to find the solution to your problem?&lt;/P&gt;
&lt;P&gt;If so, would you like to mark his reply as a solution so that others can learn from it too?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 02:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2256238#M54459</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-12-27T02:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2275901#M55555</link>
      <description>&lt;P&gt;With some work, I realized that the problem was in the data, not in the used DAX, but thanks for the improvement&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 17:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/2275901#M55555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-10T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3099345#M108873</link>
      <description>&lt;P&gt;How would I add on to this a condition that excludes a value? For example:&lt;BR /&gt;&lt;SPAN&gt;'Back Charge Data'[Selling Brand]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;DOES NOT INCLUDE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Drafting" AND&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Engineering"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 16:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3099345#M108873</guid>
      <dc:creator>StoryofData</dc:creator>
      <dc:date>2023-02-25T16:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3100582#M108981</link>
      <description>&lt;P&gt;Hi , just add a&amp;nbsp;&lt;STRONG&gt;NOT in the starting of the Filter,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Back Charge Int.Cost =
CALCULATE(
SUM('Back Charge Data'[Back Charge Cost]),
all('Back Charge Data'),
NOT('Back Charge Data'[OPL] in {"CECO", "METALLIC", "STAR"}),
NOT('Back Charge Data'[Selling Brand] in {"Drafting", "Engineering"})
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="506649" data-lia-user-login="StoryofData" class="lia-mention lia-mention-user"&gt;StoryofData&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3100582#M108981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-27T05:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3165567#M113841</link>
      <description>&lt;P&gt;Keep Filters works for me everytime.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 11:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/3165567#M113841</guid>
      <dc:creator>BGB</dc:creator>
      <dc:date>2023-03-31T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/4818009#M184209</link>
      <description>&lt;P&gt;Thank you ValtteriN for explaining filtering within CALCULATE so efficiently. My DAX is now cleaner.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 10:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-with-multiple-criteria/m-p/4818009#M184209</guid>
      <dc:creator>dlcollins</dc:creator>
      <dc:date>2025-09-05T10:34:04Z</dc:date>
    </item>
  </channel>
</rss>

