<?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: Multiple Field Filter in Single Column DAX Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092953#M162425</link>
    <description>&lt;P&gt;Exactly what I needed.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Aug 2024 05:56:42 GMT</pubDate>
    <dc:creator>BrendenS</dc:creator>
    <dc:date>2024-08-10T05:56:42Z</dc:date>
    <item>
      <title>Multiple Field Filter in Single Column DAX Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092702#M162416</link>
      <description>&lt;P&gt;Hello Forum - Hoping someone can give me quick help on this dax measure.&amp;nbsp; I am trying to calculate all open defects (So status not equal to Closed, Rejected, or Duplicate).&amp;nbsp; This is just count of Defect query status column with a status column filter.&amp;nbsp; The correct number is 91 yet with the below formula I keep getting the full defect count of 444.&amp;nbsp; What am I doing incorrectly in this measure?&amp;nbsp; No filters are set on my scorecard visual.&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>Fri, 09 Aug 2024 22:01:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092702#M162416</guid>
      <dc:creator>BrendenS</dc:creator>
      <dc:date>2024-08-09T22:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Field Filter in Single Column DAX Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092717#M162419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="600929" data-lia-user-login="BrendenS" class="lia-mention lia-mention-user"&gt;BrendenS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you need&amp;nbsp;"and" rather than "or", since you want to exclude each of those Status values. So one fix would be to change &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;||&lt;/FONT&gt;&lt;/STRONG&gt; to &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;&amp;amp;&lt;/FONT&gt;&lt;/STRONG&gt; within the FILTER condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also recommend rewriting to filter the Status column (using KEEPFILTERS) rather than the Defects table, and use IN for conciseness.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Status Defect No Rejected or Duplicate =
CALCULATE (
    COUNT ( Defects[ Status] ) + 0,
    KEEPFILTERS ( NOT Defects[ Status] IN { "Closed", "Rejected", "Duplicate" } )
)&lt;/LI-CODE&gt;
&lt;P&gt;Some references here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/best-practices/dax-avoid-avoid-filter-as-filter-argument" target="_blank"&gt;https://learn.microsoft.com/en-us/dax/best-practices/dax-avoid-avoid-filter-as-filter-argument&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://xxlbi.com/blog/power-bi-antipatterns-9/" target="_blank"&gt;https://xxlbi.com/blog/power-bi-antipatterns-9/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the above help?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 23:32:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092717#M162419</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-08-09T23:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Field Filter in Single Column DAX Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092953#M162425</link>
      <description>&lt;P&gt;Exactly what I needed.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 05:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Field-Filter-in-Single-Column-DAX-Measure/m-p/4092953#M162425</guid>
      <dc:creator>BrendenS</dc:creator>
      <dc:date>2024-08-10T05:56:42Z</dc:date>
    </item>
  </channel>
</rss>

