<?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 Dax- compare values if matches the same key with filtering columns value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914253#M95332</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldnt figure out this filtering concept... I am trying validate if any [Invoice Key] is the same when [Full Exclusion]&lt;/P&gt;&lt;P&gt;&amp;nbsp;is marked as opposite to each other (Yes/No). if in column [Full Exclusion] is 'Yes' then compare if any [Invoice Key] exist with the 'No' then in the [Double Exclusion] column mark that row as 'Yes'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;i tried this column measure but doesnt get the desired result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Double Exclusion =&lt;BR /&gt;var _Ex3 = CALCULATE(maxa('Fact PTRS Full Detail list'[Invoice Key]),'Fact PTRS Full Detail list'[Full Exclusion] = "Yes")&lt;BR /&gt;var _Ex4 = CALCULATE(MAXA('Fact PTRS Full Detail list'[Invoice Key]),'Fact PTRS Full Detail list'[Full Exclusion] = "No")&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;IF(_Ex3 = _Ex4, "Yes","No")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue i am trying to solve is there is 2 table on the PowerBI report, 1 is for the&amp;nbsp;[Full Exclusion] = Yes and other is&amp;nbsp;[Full Exclusion] = No&lt;/P&gt;&lt;P&gt;but I need to make a note of which invoice number exists in both tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is really appreciated!! Cheers&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 03:49:23 GMT</pubDate>
    <dc:creator>deng2431</dc:creator>
    <dc:date>2022-11-18T03:49:23Z</dc:date>
    <item>
      <title>Dax- compare values if matches the same key with filtering columns value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914253#M95332</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldnt figure out this filtering concept... I am trying validate if any [Invoice Key] is the same when [Full Exclusion]&lt;/P&gt;&lt;P&gt;&amp;nbsp;is marked as opposite to each other (Yes/No). if in column [Full Exclusion] is 'Yes' then compare if any [Invoice Key] exist with the 'No' then in the [Double Exclusion] column mark that row as 'Yes'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;i tried this column measure but doesnt get the desired result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Double Exclusion =&lt;BR /&gt;var _Ex3 = CALCULATE(maxa('Fact PTRS Full Detail list'[Invoice Key]),'Fact PTRS Full Detail list'[Full Exclusion] = "Yes")&lt;BR /&gt;var _Ex4 = CALCULATE(MAXA('Fact PTRS Full Detail list'[Invoice Key]),'Fact PTRS Full Detail list'[Full Exclusion] = "No")&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;IF(_Ex3 = _Ex4, "Yes","No")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue i am trying to solve is there is 2 table on the PowerBI report, 1 is for the&amp;nbsp;[Full Exclusion] = Yes and other is&amp;nbsp;[Full Exclusion] = No&lt;/P&gt;&lt;P&gt;but I need to make a note of which invoice number exists in both tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is really appreciated!! Cheers&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 03:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914253#M95332</guid>
      <dc:creator>deng2431</dc:creator>
      <dc:date>2022-11-18T03:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax- compare values if matches the same key with filtering columns value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914285#M95343</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467854" data-lia-user-login="deng2431" class="lia-mention lia-mention-user"&gt;deng2431&lt;/a&gt; , a new column &lt;/P&gt;
&lt;P&gt;New columm= &lt;BR /&gt;var _cnt = countx(filter('Fact PTRS Full Detail list',[Invoice Key] = earlier([Invoice Key]) &amp;amp;&amp;amp; [Full Exclusion] = "No"), [Invoice Key])&lt;BR /&gt;return &lt;BR /&gt;if(isblank(_cnt), "No", [Full Exclusion])&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 04:24:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914285#M95343</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-18T04:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dax- compare values if matches the same key with filtering columns value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914316#M95347</link>
      <description>&lt;P&gt;oh awesome&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;- love your work!!&lt;/P&gt;&lt;P&gt;the formula worked really well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 05:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-compare-values-if-matches-the-same-key-with-filtering/m-p/2914316#M95347</guid>
      <dc:creator>deng2431</dc:creator>
      <dc:date>2022-11-18T05:03:54Z</dc:date>
    </item>
  </channel>
</rss>

