<?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: Filter out the data when the conditions are not fully match in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3045043#M104635</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503432" data-lia-user-login="sumpekung" class="lia-mention lia-mention-user"&gt;sumpekung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get you, you may try to add a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = COUNTROWS(VALUES(TableName[Operation]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may plot a table visual with Lot column and the measure, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can feed filter pane for a visual with the measure and show the items when the value is 2, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 12:52:55 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-01-26T12:52:55Z</dc:date>
    <item>
      <title>Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3044397#M104598</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to sort some rows out if those rows not match all conditions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compare the defect by date between 2 operations but I want to compare only the lot that already pass both operations. Is there any way to sort the rows out via power query or measure function?&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;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 07:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3044397#M104598</guid>
      <dc:creator>sumpekung</dc:creator>
      <dc:date>2023-01-26T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3045028#M104634</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;New Count=&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;[lot]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;[Operations]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;[lot]&lt;/SPAN&gt;&lt;SPAN&gt;), Table&lt;/SPAN&gt;&lt;SPAN&gt;[Operations]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;[Defect]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;Please kudo and like the solution if it works for you.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jan 2023 12:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3045028#M104634</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2023-01-26T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3045043#M104635</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503432" data-lia-user-login="sumpekung" class="lia-mention lia-mention-user"&gt;sumpekung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get you, you may try to add a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = COUNTROWS(VALUES(TableName[Operation]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may plot a table visual with Lot column and the measure, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can feed filter pane for a visual with the measure and show the items when the value is 2, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 12:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3045043#M104635</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-26T12:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046392#M104723</link>
      <description>&lt;P&gt;My whole data table contains many rows for each lot and not same row quantity in each lot, so it doesn't work with ny data.&lt;BR /&gt;Thank you in advance krub&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046392#M104723</guid>
      <dc:creator>sumpekung</dc:creator>
      <dc:date>2023-01-27T01:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046484#M104731</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;, sorry for the less information I provide. My data set contains multiple days, then it still sum defect from all lots I have. Now I'm trying to adapt your idea if it can work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 03:33:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046484#M104731</guid>
      <dc:creator>sumpekung</dc:creator>
      <dc:date>2023-01-27T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046704#M104755</link>
      <description>&lt;P&gt;OperationCount=CALCULATE(DISTINCTCOUNT(Table[Operation]),ALLEXCEPT(Table,Table[Date],Table[Lot]))&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 07:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3046704#M104755</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-01-27T07:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3048356#M104895</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503432" data-lia-user-login="sumpekung" class="lia-mention lia-mention-user"&gt;sumpekung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then could you update your sample date to fully refect the issue?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 14:31:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3048356#M104895</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-28T14:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3049216#M104960</link>
      <description>&lt;P&gt;Thank you in advance for follow up with a great support krub. Anyway, I already fixed my problem with the idea from you and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 01:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3049216#M104960</guid>
      <dc:creator>sumpekung</dc:creator>
      <dc:date>2023-01-30T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out the data when the conditions are not fully match</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3049222#M104961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks again krub. I already fix the issue. I create MAX Operation column by power query and sort the operation#1 out and use measure as below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test Count = &lt;/SPAN&gt;&lt;SPAN&gt;If(If(CALCULATE(Count('Table'[Lot]), 'Table'[Operation] = 2) &amp;gt; 0 ,1,0)=1, Sum('Table'[Defect]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&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>Mon, 30 Jan 2023 01:39:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-the-data-when-the-conditions-are-not-fully-match/m-p/3049222#M104961</guid>
      <dc:creator>sumpekung</dc:creator>
      <dc:date>2023-01-30T01:39:33Z</dc:date>
    </item>
  </channel>
</rss>

