<?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: Column Values Comparison in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875860#M92941</link>
    <description>&lt;P&gt;Hi&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;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes so basically I'm after all records that has the same date &amp;amp;&amp;amp; values in Ename can be found in the record of any of the same date's Interim column. What i'm trying to achieve is to determine if a user's [E Name] leave date conflicts with his Interim [Interim].&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 02:18:39 GMT</pubDate>
    <dc:creator>SamuelROS</dc:creator>
    <dc:date>2022-11-01T02:18:39Z</dc:date>
    <item>
      <title>Column Values Comparison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875789#M92934</link>
      <description>&lt;P&gt;Hello BI Gurus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to DAX and I have been trying to wrap around my head on how to accomplish the following;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I determine if a record conflicts base on the following conditions;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Date are the same&lt;/P&gt;&lt;P&gt;2. "Ename" has values from other record but different column "Interim"&lt;/P&gt;&lt;P&gt;Any insight is greatly appreciated.&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>Tue, 01 Nov 2022 01:53:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875789#M92934</guid>
      <dc:creator>SamuelROS</dc:creator>
      <dc:date>2022-11-01T01:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Column Values Comparison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875830#M92940</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421529" data-lia-user-login="SamuelROS" class="lia-mention lia-mention-user"&gt;SamuelROS&lt;/a&gt; , 17th also has the same issue, why not that ?&lt;/P&gt;
&lt;P&gt;23rd is only one record&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 02:11:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875830#M92940</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-01T02:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Column Values Comparison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875860#M92941</link>
      <description>&lt;P&gt;Hi&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;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes so basically I'm after all records that has the same date &amp;amp;&amp;amp; values in Ename can be found in the record of any of the same date's Interim column. What i'm trying to achieve is to determine if a user's [E Name] leave date conflicts with his Interim [Interim].&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 02:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2875860#M92941</guid>
      <dc:creator>SamuelROS</dc:creator>
      <dc:date>2022-11-01T02:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Column Values Comparison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2891434#M93861</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421529" data-lia-user-login="SamuelROS" class="lia-mention lia-mention-user"&gt;SamuelROS&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try calculated column like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result =
VAR _count =
    CALCULATE (
        DISTINCTCOUNT('Table'[Interim]),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Leave Date] = EARLIER ( 'Table'[Leave Date] )
                &amp;amp;&amp;amp; 'Table'[Leave Type] = "Leave"
                &amp;amp;&amp;amp; 'Table'[Interim] &amp;lt;&amp;gt; EARLIER ( 'Table'[E Name] )
        )
    )
RETURN
    IF ( _count &amp;gt; 0, "conflicts" )
&lt;/LI-CODE&gt;
&lt;P&gt;If it doesn't work, please share your expected output in excel.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2891434#M93861</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-11-08T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Column Values Comparison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2891493#M93865</link>
      <description>&lt;P&gt;Hi CST,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't work the way I wanted it to since it was returning the same values. But I did revised it a bit and it work like a charm :). Thank you for taking the time to look into my problem. Your code was also very easy to understand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result = 
VAR _count =
    CALCULATE (
        DISTINCTCOUNT('Table'[Leave Date]),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Leave Date] = EARLIER ( 'Table'[Leave Date] )
                &amp;amp;&amp;amp; 'Table'[Interim] = EARLIER ( 'Table'[E Name] )
        )
    )
RETURN
    IF ( _count &amp;gt; 0, "Conflict","No Conflict" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-Values-Comparison/m-p/2891493#M93865</guid>
      <dc:creator>SamuelROS</dc:creator>
      <dc:date>2022-11-08T08:38:01Z</dc:date>
    </item>
  </channel>
</rss>

