<?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: Identify 2 different rows under the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419769#M64052</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. However, I expect the selection will be 2 report dates, the measure needs to compare both reports dates data to see how many orders on the first report date are not available on the 2nd report date, how many orders on the 2nd report date but are not available in the first report date, how many orders are both existing in first and 2nd report dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;</description>
    <pubDate>Sun, 27 Mar 2022 14:06:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-27T14:06:27Z</dc:date>
    <item>
      <title>Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419694#M64043</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below table and use the slicer select report date. When the user selected 14-Feb to 28-Feb in the slicer. I want to compare all records from 14-Feb and 28-Feb. Identify which order is only available in 14-Feb, which order is only available in 28-Feb, and which order is available on both 14-Feb and 28-Feb. In case, the user selected 21-Feb to 28-Feb, the same comparison applied to 21-Feb and 28-Feb orders. May I know if DAX functions can solve it?&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;Clement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 11:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419694#M64043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-27T11:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419764#M64051</link>
      <description>&lt;P&gt;Hi Clement:&lt;/P&gt;&lt;P&gt;One way to do this is to have an extra slicer just for report date. You'll see the report date slicer on the left and then an overall date slicer on the right. For the report dates I manually entered the three dates in (Enter Data) but you can also paste&amp;nbsp; excel data there if you'd like instead.If you only want to group by the 3 report dates you may not need the All Date Slicer. I am attac&lt;A title="rpt date" href="https://drive.google.com/file/d/12Epr69lOgr33NTPZDYg4XRubqqeTjFQW/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/12Epr69lOgr33NTPZDYg4XRubqqeTjFQW/view?usp=sharing&lt;/A&gt;&amp;nbsp;hing a link.&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;</description>
      <pubDate>Sun, 27 Mar 2022 13:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419764#M64051</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-27T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419769#M64052</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. However, I expect the selection will be 2 report dates, the measure needs to compare both reports dates data to see how many orders on the first report date are not available on the 2nd report date, how many orders on the 2nd report date but are not available in the first report date, how many orders are both existing in first and 2nd report dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 14:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419769#M64052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-27T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419785#M64054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the slicer is based on which column? Or do you have a date table? If so to which column it connects?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 14:57:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2419785#M64054</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-27T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2420424#M64088</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The slicer column is based on the report date column. I did not create another date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 05:49:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2420424#M64088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-28T05:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2420983#M64131</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;You can start with creating a slicer table from the report date column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Date Selection =
VALUES ( Table[Report Date] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create the slicer from the new table.&lt;BR /&gt;Now use thrf oloowing code to create a filter measure&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Filter Measure =
VAR FirstDateInSlicer =
    MIN ( 'Date Selection'[Report Date] )
VAR LastDateInSlicer =
    MAX ( 'Date Selection'[Report Date] )
VAR CurrentDateInVisual =
    MAX ( Table[Report Date] )
RETURN
    OR (
        CurrentDateInVisual = FirstDateInSlicer,
        CurrentDateInVisual = LastDateInSlicer
    )&lt;/LI-CODE&gt;&lt;P&gt;Place the filter measure in the filter pane and select "is" and insert value "1" then apply.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 09:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2420983#M64131</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-28T09:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2421719#M64186</link>
      <description>&lt;P&gt;If you just need the numbers which are in the 3 categories ( first date only, second date only, both ) then you can create 3 measures like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;First date only =
var minDate = MIN('Table'[Reporting Date])
var maxDate = MAX('Table'[Reporting Date])
var ordersFirstDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = minDate)
var ordersSecondDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = maxDate)
return COUNTROWS(EXCEPT( ordersFirstDate, ordersSecondDate ) )

Second date only =
var minDate = MIN('Table'[Reporting Date])
var maxDate = MAX('Table'[Reporting Date])
var ordersFirstDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = minDate)
var ordersSecondDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = maxDate)
return COUNTROWS(EXCEPT( ordersSecondDate, ordersFirstDate ) )

Both dates =
var minDate = MIN('Table'[Reporting Date])
var maxDate = MAX('Table'[Reporting Date])
var ordersFirstDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = minDate)
var ordersSecondDate = CALCULATETABLE( VALUES('Table'[Order]), 'Table'[Reporting Date] = maxDate)
return COUNTROWS(INTERSECT( ordersSecondDate, ordersFirstDate ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Mar 2022 13:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2421719#M64186</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-28T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2422019#M64205</link>
      <description>&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me take some time to apply the above solution and let you know the outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 15:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2422019#M64205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-28T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2424781#M64372</link>
      <description>&lt;P&gt;Dear both,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tested it. It works perfectly. Many thanks for your help. It really helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2424781#M64372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-29T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433160#M64856</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to calculate the total qty of each category (first date only/second date only/both dates), it is possible to use calculate sum qty filter each category? I tried but seems syntex error. Also, from both dates category, I also want to identify how many POs are with different "date" column value and how many day different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 09:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433160#M64856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-02T09:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433196#M64859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see category in your sample data. Can you please advise how would be thevexpected results based on the given sample data?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 11:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433196#M64859</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-02T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433282#M64870</link>
      <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same data set as below. Assume, I selected the range from 14th to 28th in the slicer. PO4 to PO9 are existing in both report dates 14th and 28th.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I want to base on the qty column to calculate the total qty of both dates POs (PO4 to PO9). The expect result will be 1200. Ideally, better only based on earliest date (14th) to sum the qty. The result will become 600.&lt;/P&gt;&lt;P&gt;2. I want to compare the date column of both dates POs (PO4 to PO9). If both POs with same date, output PO count and total qty of same date POs. If both PO with different date, output the days different (-/+) with PO count and total qty.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 14:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433282#M64870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-02T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433383#M64875</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Point one is clear. My understanding is that once start and end report dates are selected you want to display a table that contains only the PO numbers which are available in both report dates with quantity of only the first date. Therfore, as per the sample data the grand total will show 600. Is that correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Still need more clarification on point 2. My understanding is that this is another report/table that will disply the the two selected report dates. This time we need to compare the date column. If the same PO in both earlier report date and later report date has the same date then we count the PO's that have the same date using one measure (count of same date PO's) and sum the quantity of these PO's using another measure (qty of same date PO's)&lt;/P&gt;&lt;P&gt;anoth teo similar measures to count the number of dissimilar date PO's and their quantity. One more measure to disply the diffence between dates in days. Is that correct?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 18:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433383#M64875</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-02T18:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433557#M64884</link>
      <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point 1 your understanding is correct.&lt;/P&gt;&lt;P&gt;Point 2 in fact I only have 1 table that same as sample date. I did not create any other table for report date or other data. Is it still possible to compare same POs under selected report date to determine how many PO and qty with same "date" and different "date". If they are with different dates, also found out PO count and qty per day different. e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same date PO = 3 POs and 300 qty (PO7-PO9)&lt;/P&gt;&lt;P&gt;Diff date PO =&amp;nbsp;3 POs and 300 qty (PO4-PO6)&lt;/P&gt;&lt;P&gt;2 days diff =&amp;nbsp;3 POs and 300 qty (PO4-PO6) (in case we have other days diff like, will also list out each days diff PO and qty).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or just simply list out no of days diff PO and qty, then I can assume day diff is 0 meaning same date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 02:55:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433557#M64884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-03T02:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433575#M64885</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok I think this is almost the same as my initial understanding. But how are you planning to display the results? In card visuals?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 05:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433575#M64885</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-03T05:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433614#M64886</link>
      <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first chart will be list out qty of slicer selected first and last date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then I want to have a card or table to indicate both report dates how many PO and qty only available at the first report date, how many PO and qty only available at the last report date. How many PO and qty available at both report dates.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then understand from PO existing in both report dates. How many PO and qty with same "date" and different "date". Then may a bar chart show diff day (-/+) at x-axis and PO/Qty at y-axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 07:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433614#M64886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-03T07:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433772#M64902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Apologies for the late reply as I was not available on my computer most of the day. However I had the chance to read your reply on my phone and thought about the solution for a while.&lt;BR /&gt;I started with creating a disconnected filter table in order to achieve&amp;nbsp;the shape of the report you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Filter Table = { "Only Available in First Date", "Only Available in Last Date", "Available in Both Dates" }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measures are as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For the first report:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Qty First Date = 
VAR FirstDateInSlicer =
    MIN ( 'Table'[Report date] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Qty] ),
        'Table'[Report date] = FirstDateInSlicer
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Qty Last Date = 
VAR LastDateInSlicer =
    MAX ( 'Table'[Report date] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Qty] ),
        'Table'[Report date] = LastDateInSlicer
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For the 2nd report&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;# PO's = 
VAR CurrentFilter =
    SELECTEDVALUE ( 'Filter Table'[Value] )
VAR FirstDateInSlicer =
    MIN ( 'Table'[Report date] )
VAR LastDateInSlicer =
    MAX ( 'Table'[Report date] )
VAR FirstDateTable = 
    FILTER ( 'Table', 'Table'[Report date] = FirstDateInSlicer )
VAR LastDateTable =
    FILTER ( 'Table', 'Table'[Report date] = LastDateInSlicer )
VAR FistDatePOs = 
    SELECTCOLUMNS ( FirstDateTable, "@POs", [Order] )
VAR LastDatePOs = 
    SELECTCOLUMNS ( LastDateTable, "@POs", [Order] )
VAR POsInBothDates =
    INTERSECT ( FistDatePOs, LastDatePOs )
VAR POsInFirstDate =
    EXCEPT ( FistDatePOs, LastDatePOs )
VAR POsInLastDate =
    EXCEPT ( LastDatePOs, FistDatePOs )
VAR POsBoth =
    COUNTROWS ( POsInBothDates )
VAR POsFirstOnly =
    COUNTROWS ( POsInFirstDate )
VAR POsLastOnly =
    COUNTROWS ( POsInLastDate )
RETURN
    SWITCH (
        TRUE (),
        CurrentFilter = "Only Available in First Date", POsFirstOnly,
        CurrentFilter = "Only Available in Last Date", POsLastOnly,
        CurrentFilter = "Available in Both Dates", POsBoth
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Total Qty = 
VAR CurrentFilter =
    SELECTEDVALUE ( 'Filter Table'[Value] )
VAR FirstDateInSlicer =
    MIN ( 'Table'[Report date] )
VAR LastDateInSlicer =
    MAX ( 'Table'[Report date] )
VAR FirstDateTable = 
    FILTER ( 'Table', 'Table'[Report date] = FirstDateInSlicer )
VAR LastDateTable =
    FILTER ( 'Table', 'Table'[Report date] = LastDateInSlicer )
VAR FistDatePOs = 
    SELECTCOLUMNS ( FirstDateTable, "@POs", [Order] )
VAR LastDatePOs = 
    SELECTCOLUMNS ( LastDateTable, "@POs", [Order] )
VAR POsInBothDates =
    INTERSECT ( FistDatePOs, LastDatePOs )
VAR POsInFirstDate =
    EXCEPT ( FistDatePOs, LastDatePOs )
VAR POsInLastDate =
    EXCEPT ( LastDatePOs, FistDatePOs )
VAR QtyBoth =
    CALCULATE ( 
        SUM ( 'Table'[Qty] ),
        FirstDateTable,
        POsInBothDates
    )
VAR QtyFirstOnly =
    CALCULATE ( 
        SUM ( 'Table'[Qty] ),
        FirstDateTable,
        POsInFirstDate
    )
VAR QtyLastOnly =
    CALCULATE ( 
        SUM ( 'Table'[Qty] ),
        LastDateTable,
        POsInLastDate
    )
RETURN
    SWITCH (
        TRUE (),
        CurrentFilter = "Only Available in First Date", QtyFirstOnly,
        CurrentFilter = "Only Available in Last Date", QtyLastOnly,
        CurrentFilter = "Available in Both Dates", QtyBoth
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report looks like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Here is a link to download&amp;nbsp;the sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/v9NVs1q8VLeP2hIU" target="_blank"&gt;https://www.dropbox.com/t/v9NVs1q8VLeP2hIU&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 05:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2433772#M64902</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-04T05:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2434376#M64931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;tamerj1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help and provide feedback even via the phone. Really appreciate!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The outcome looks good. When I select different start and end report date, I found the outcome is not quite correct. The 3rd table cannot identify the correct category.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Clement&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 05:20:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2434376#M64931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-04T05:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2434411#M64934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I have updated the code in my previous reply. You can download again with the error corrected.&lt;BR /&gt;Have a great day!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 05:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2434411#M64934</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-04T05:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identify 2 different rows under the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2435943#M65007</link>
      <description>&lt;P&gt;Hi tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your prompt response. I found 14 to 28 and 21 to 28 are not correct so the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clement&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 14:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Identify-2-different-rows-under-the-same-table/m-p/2435943#M65007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-04T14:34:00Z</dc:date>
    </item>
  </channel>
</rss>

