<?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 Fetching the added/removed records from a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fetching-the-added-removed-records-from-a-table/m-p/935281#M9737</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in solving the below issue using DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a quarterly data with list of items as below.&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Items&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I need to fetch the added the items and removed items in the current quarter comparing to previous quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added Items&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removed Items&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone could tell me how to fetch the added and remvoed items using DAX...&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 09:52:55 GMT</pubDate>
    <dc:creator>Parkavi</dc:creator>
    <dc:date>2020-02-17T09:52:55Z</dc:date>
    <item>
      <title>Fetching the added/removed records from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fetching-the-added-removed-records-from-a-table/m-p/935281#M9737</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in solving the below issue using DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a quarterly data with list of items as below.&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Items&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; | D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Current Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;01/12/2019&amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Previous Quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I need to fetch the added the items and removed items in the current quarter comparing to previous quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added Items&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removed Items&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone could tell me how to fetch the added and remvoed items using DAX...&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fetching-the-added-removed-records-from-a-table/m-p/935281#M9737</guid>
      <dc:creator>Parkavi</dc:creator>
      <dc:date>2020-02-17T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching the added/removed records from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fetching-the-added-removed-records-from-a-table/m-p/935621#M9767</link>
      <description>&lt;P&gt;Hi! interesting situation. If you have a good refresh of current and previous quarter flag column you can build columns like this for new:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsNew = 
IF ( 
    AND(
        newfromquarter[Quarter] = "Current Quarter";
        NOT(
            newfromquarter[Items] IN
                SELECTCOLUMNS(
                    FILTER(
                        VALUES(newfromquarter); 
                        newfromquarter[Quarter] = "Previous Quarter"
                    ); "Item"; newfromquarter[Items]
                )
            )
        )
    ; "Yes"
    ; "No"
)&lt;/LI-CODE&gt;
&lt;P&gt;And something like this for the removed:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsRemoved = 
IF ( 
    AND(
        newfromquarter[Quarter] = "Previous Quarter";
        NOT(
            newfromquarter[Items] IN
            SELECTCOLUMNS(
                FILTER(
                    VALUES(newfromquarter); 
                    newfromquarter[Quarter] = "Current Quarter"
                ); "Item"; newfromquarter[Items]
            )
        )
    )
    ; "Yes"
    ; "No"
)&lt;/LI-CODE&gt;
&lt;P&gt;Then you can just filter in your report pages by this new column to understand the added and removed items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 13:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fetching-the-added-removed-records-from-a-table/m-p/935621#M9767</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2020-02-17T13:32:16Z</dc:date>
    </item>
  </channel>
</rss>

