<?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: Desktop Compare two excel files in power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2488143#M68390</link>
    <description>&lt;P&gt;Thank you Icey.&lt;/P&gt;&lt;P&gt;It works for me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yanne.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 08:08:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-02T08:08:25Z</dc:date>
    <item>
      <title>Desktop Compare two excel files in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2457875#M66377</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Last time i was asking how&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;to display new employees of the current month compared to the previous month in a datasheet &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;in January we had John, Carter, Kim and Alexander.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In February we have John, Carter, Kim, Alexander and Sienna.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The visual should then show me only Sienna&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is the solution that worked for me :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Flag = 
var _preMonth=DATEADD('Table'[Month],-1,MONTH)
var _preEmps= SUMMARIZE(FILTER(ALL('Table'),YEAR([Month])= YEAR(_preMonth) &amp;amp;&amp;amp; MONTH([Month])=MONTH(_preMonth)) ,[Name of Employees])
return IF(_preMonth&amp;lt;&amp;gt;BLANK(),IF( MAX('Table'[Name of Employees]) in _preEmps,0,1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Now i would like to have the list of all the employees who have disappeared (they are no longer in the database)&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&amp;nbsp;:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The visual should then show me only : Carter and Alexander&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rena.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 16:53:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2457875#M66377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-14T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Desktop Compare two excel files in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2458357#M66396</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create a date using month year. Using common date and employee table follow this customer retention logic &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 02:05:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2458357#M66396</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-15T02:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Desktop Compare two excel files in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2458741#M66425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I hope "Month" is a date column. Then you can drag this measure into the filter pane and select "Not is blank"&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Flag =
VAR NumberOfMonths = 1
VFlag =
VAR NumberOfMonths = 1
VAR CrrentPeriod =
    MAX ( 'Table'[Month] )
VAR PreviousPeriod =
    DATEADD ( CrrentPeriod, - NumberOfMonths, MONTH )
VAR LastPeriodEmployees =
    CALCULATETABLE (
        VALUES ( 'Table'[Name of Employees] ),
        'Table'[Month] = PreviousPeriod
    )
VAR CurrentPeriodEmployees =
    CALCULATETABLE (
        VALUES ( 'Table'[Name of Employees] ),
        'Table'[Month] = CrrentPeriod
    )
RETURN
    COUNTROWS ( EXCEPT ( LastPeriodEmployees, CurrentPeriodEmployees ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 15 Apr 2022 07:47:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2458741#M66425</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-15T07:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Desktop Compare two excel files in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2471027#M67279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can just change your expression like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag 2 = 
VAR _curMonth =
    DATEADD ( 'Table2'[Month], 1, MONTH )
VAR _curEmps =
    SUMMARIZE (
        FILTER (
            ALL ( 'Table2' ),
            YEAR ( [Month] ) = YEAR ( _curMonth )
                &amp;amp;&amp;amp; MONTH ( [Month] ) = MONTH ( _curMonth )
        ),
        [Name of Employees]
    )
RETURN
    IF (
        _curMonth &amp;lt;&amp;gt; BLANK (),
        IF ( MAX ( 'Table2'[Name of Employees] ) IN _curEmps, 0, 1 )
    )
&lt;/LI-CODE&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 09:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2471027#M67279</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2022-04-22T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Desktop Compare two excel files in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2488143#M68390</link>
      <description>&lt;P&gt;Thank you Icey.&lt;/P&gt;&lt;P&gt;It works for me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yanne.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:08:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Desktop-Compare-two-excel-files-in-power-bi/m-p/2488143#M68390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-02T08:08:25Z</dc:date>
    </item>
  </channel>
</rss>

