<?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 Exclude certain rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-certain-rows/m-p/3581690#M138167</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me, i need to exlude the rows wich have status code U only if there is another row with same date, shift and lineguide and with status code A with earlier start time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 11:10:51 GMT</pubDate>
    <dc:creator>Ahmedismaeell</dc:creator>
    <dc:date>2023-12-13T11:10:51Z</dc:date>
    <item>
      <title>Exclude certain rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-certain-rows/m-p/3581690#M138167</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me, i need to exlude the rows wich have status code U only if there is another row with same date, shift and lineguide and with status code A with earlier start time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 11:10:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-certain-rows/m-p/3581690#M138167</guid>
      <dc:creator>Ahmedismaeell</dc:creator>
      <dc:date>2023-12-13T11:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude certain rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-certain-rows/m-p/3585198#M138319</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="660184" data-lia-user-login="Ahmedismaeell" class="lia-mention lia-mention-user"&gt;Ahmedismaeell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TimeA = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="A"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;TimeU = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="U"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = IF([TimeA]&amp;lt;[TimeU]&amp;amp;&amp;amp;SELECTEDVALUE('Table'[StatusCode])="U",1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the result you expect?&lt;/SPAN&gt; &lt;SPAN&gt;Please see the attached document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 06:43:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-certain-rows/m-p/3585198#M138319</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-15T06:43:25Z</dc:date>
    </item>
  </channel>
</rss>

