<?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 Group by in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394445#M128026</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at my post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to link 2 tables and i wanted to get unique number rather than repeating numbers to connect two table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am looking for is in "Transform data" tab i wanted to find the latest date for particular number and show the comments for those numbers and ignore the repeation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example is below. Any idea about this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original data :&lt;/P&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;Result looking for:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 09:53:50 GMT</pubDate>
    <dc:creator>jimpatel</dc:creator>
    <dc:date>2023-08-23T09:53:50Z</dc:date>
    <item>
      <title>Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394445#M128026</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at my post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to link 2 tables and i wanted to get unique number rather than repeating numbers to connect two table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am looking for is in "Transform data" tab i wanted to find the latest date for particular number and show the comments for those numbers and ignore the repeation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example is below. Any idea about this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original data :&lt;/P&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;Result looking for:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 09:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394445#M128026</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2023-08-23T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394530#M128032</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can follow the below steps to achieve the result:&lt;/P&gt;&lt;P&gt;1. Go to Transform Data--&amp;gt;Group By in Power Query Editor&lt;/P&gt;&lt;P&gt;2. Fill the Group By pop up window like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You will see the result as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After Group By:&lt;/P&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;Regards,&lt;/P&gt;&lt;P&gt;Ritu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Accept the answer as solution if this solves your problem. Happy to help.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 10:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394530#M128032</guid>
      <dc:creator>rrm121812</dc:creator>
      <dc:date>2023-08-23T10:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394964#M128054</link>
      <description>&lt;P&gt;Thanks a lot for your reply. I have tried this before but unfortunately its not picking the latest date comments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For comments its picking up the last alphabet starting letter. That is if i have multiple comments, its picking the letter starting in the very last alphabets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3394964#M128054</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2023-08-23T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396177#M128101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To simulate your case I have added a column Comments to the data table with different alphabets. There is a way you can still Group By Number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a custom column by merging Date and Comments with the use of any delimiter. I have use "-".&lt;/P&gt;&lt;P&gt;2. Then Groupby Number and aggregate over the new custom column (Using MAX)&lt;/P&gt;&lt;P&gt;3. After groupby split the column by delimiter. And you will get the comments corresponding to the max date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Group BY" href="https://drive.google.com/file/d/1CnkVBrEKDIRV0qXbmfNJ9wb2aZYjAiHU/view?usp=drive_link" target="_blank" rel="noopener"&gt;Group By.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 05:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396177#M128101</guid>
      <dc:creator>rrm121812</dc:creator>
      <dc:date>2023-08-24T05:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396714#M128141</link>
      <description>&lt;P&gt;Thanks a lot for your time and effort. One last thing in your logic is it is taking max date. That is if two dates, one is 30/02/2020 and other one is 20/03/2023, it is considering first one as the max date is 30th. Is there anyway to find solution for this pleasE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot and thanks a ton for your help again&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 10:10:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396714#M128141</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2023-08-24T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396774#M128148</link>
      <description>&lt;P&gt;It is because Date column datatype is set to String. If you convert it into Date, it will resolve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find this insightful, please &lt;STRONG&gt;give Kudos and Accept it as a solution&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 10:42:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396774#M128148</guid>
      <dc:creator>rrm121812</dc:creator>
      <dc:date>2023-08-24T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396788#M128150</link>
      <description>&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 10:55:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-by/m-p/3396788#M128150</guid>
      <dc:creator>jimpatel</dc:creator>
      <dc:date>2023-08-24T10:55:10Z</dc:date>
    </item>
  </channel>
</rss>

