<?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: Returning unique rows based on multiple columns, filtered by date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/957189#M11035</link>
    <description>Have a look:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.daxpatterns.com/new-and-returning-customers/" target="_blank"&gt;https://www.daxpatterns.com/new-and-returning-customers/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's the same problem in disguise.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Tue, 03 Mar 2020 15:53:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-03T15:53:43Z</dc:date>
    <item>
      <title>Returning unique rows based on multiple columns, filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/957175#M11033</link>
      <description>&lt;P&gt;I have a dataset with values such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IP address&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pertaining to a scan of the IP address. There are mulitple rows for the same IP address, for different scan dates, and different IDs for various findings. I want to be able to produce the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Table that has unique rows (based on IP address + ID combination), with the date being in the last month i.e. new IDs appearing&lt;/P&gt;&lt;P&gt;2. Table that shows the opposite i.e. where rows may have different dates, but the same&amp;nbsp;IP address + ID combination, showing that the IP/ID pair has existed for at least one month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Counts of how many new IP/ID pairs have shown up in the last scan&lt;/P&gt;&lt;P&gt;4. Counts of how many IP/ID pairs are not new&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3&amp;amp;4 easy enough if I have the tables from 1&amp;amp;2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying out the SUMMARIZE, DISTINCT, and VALUES functions but with no joy. Does anybody have a solution or some guidance?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:42:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/957175#M11033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Returning unique rows based on multiple columns, filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/957189#M11035</link>
      <description>Have a look:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.daxpatterns.com/new-and-returning-customers/" target="_blank"&gt;https://www.daxpatterns.com/new-and-returning-customers/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's the same problem in disguise.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 03 Mar 2020 15:53:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/957189#M11035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Returning unique rows based on multiple columns, filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/958392#M11088</link>
      <description>&lt;P&gt;This looks like exactly what I'm looking for. Just need to work out how to translate in to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for thinking laterally on my behalf! Will mark as accepted, even though it may take me a while to resolve &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 09:26:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/958392#M11088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Returning unique rows based on multiple columns, filtered by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/960411#M11201</link>
      <description>&lt;P&gt;For anybody else looking for the same help, I also found this page which takes a slightly different approach but I found the explanations really helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://finance-bi.com/power-bi-new-and-repeat-customers/" target="_blank" rel="noopener"&gt;https://finance-bi.com/power-bi-new-and-repeat-customers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: although I think some of the logic isn't 100%, it still helped me get what I was after e.g. the author states that&amp;nbsp;&lt;SPAN&gt;FIRSTDATE is used to get the first day of the month, but its used to get the earliest date in a range of dates passed to it, as a column.&lt;BR /&gt;&lt;BR /&gt;In summary, the post above had some useful tips to help me understand a solution for my own problem, but be careful how you implement it yourself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 12:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-unique-rows-based-on-multiple-columns-filtered-by-date/m-p/960411#M11201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-05T12:55:22Z</dc:date>
    </item>
  </channel>
</rss>

