<?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: How can I identify duplicates in a filtered column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1016630#M13086</link>
    <description>&lt;P&gt;Try using ADDCOLUMNS to COUNTROWS against a SUMMARIZE&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 04:21:51 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-04-09T04:21:51Z</dc:date>
    <item>
      <title>How can I identify duplicates in a filtered column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1016576#M13085</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I'm looking for some help with identifying rows as duplicates ONLY if they are duplicated in the current filter context.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm having a really hard time doing this.&lt;BR /&gt;I can easily mark a duplicate row by creating a custom column by itterating through the table then adding a Yes/No or 1/0 but that only works in the context of the whole dataset when using a custom column.&lt;BR /&gt;&lt;BR /&gt;E.g. whole dataset might look like&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01-02&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01-03&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my report visual I just pin a simple table containing both columns and a Date slicer against the date.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If my slicer date range is the entire table then I need ID=A marked as duplicate.&lt;BR /&gt;If my slicer date range is only for the first 2 dates (2020-01-01 -&amp;gt; 2020-01-02) then there are no duplicates.&lt;BR /&gt;&lt;BR /&gt;Any help would be great!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 03:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1016576#M13085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T03:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify duplicates in a filtered column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1016630#M13086</link>
      <description>&lt;P&gt;Try using ADDCOLUMNS to COUNTROWS against a SUMMARIZE&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 04:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1016630#M13086</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-09T04:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify duplicates in a filtered column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1020536#M13182</link>
      <description>&lt;P&gt;Thanks for pointing me in the right direction.&lt;/P&gt;&lt;P&gt;I ended up using that to create a new table with ID and number of duplicates. Initially it was just showing the whole table regardless of my date slicer then I reasised the slicer was using the date from the other table.... so I created a master calendar table and use that as the date slicer instead so it now affects both my DAX calculated table and the original.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I created a table using this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table = 
        ADDCOLUMNS(
            SUMMARIZE(Sheet1,Sheet1[ID], Sheet1[Date]),
            "Duplicate",calculate(COUNTROWS(Sheet1))
        )&lt;/LI-CODE&gt;&lt;P&gt;Then a master calendar table using CALENDARAUTO() and creating a relationship between the date in the master calendar and Sheet1 &amp;amp; Table.&lt;BR /&gt;&lt;BR /&gt;I also created another bridging table for [ID] so I can now also drill through from my newly created table using [ID] to 'Sheet1'.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 07:13:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-identify-duplicates-in-a-filtered-column/m-p/1020536#M13182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-11T07:13:55Z</dc:date>
    </item>
  </channel>
</rss>

