<?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 calculate value and drop duplicates in groups in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802038#M88193</link>
    <description>&lt;P&gt;Here is the data and I want to drop duplicate in "name" level by get the max value,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, after drop duplicates in name level, the sum value of type "high" is 2+5 rather than 2+2+5+4&lt;/P&gt;&lt;P&gt;do you have any ideas? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 07:55:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-28T07:55:55Z</dc:date>
    <item>
      <title>calculate value and drop duplicates in groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802038#M88193</link>
      <description>&lt;P&gt;Here is the data and I want to drop duplicate in "name" level by get the max value,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, after drop duplicates in name level, the sum value of type "high" is 2+5 rather than 2+2+5+4&lt;/P&gt;&lt;P&gt;do you have any ideas? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 07:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802038#M88193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: calculate value and drop duplicates in groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802758#M88244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&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;LI-CODE lang="markup"&gt;New table create =
GROUPBY (
    Data,
    Data[Type],
    Data[Category],
    "@MaxValue", MAXX ( CURRENTGROUP (), Data[Value] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 12:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802758#M88244</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-09-28T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: calculate value and drop duplicates in groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802778#M88246</link>
      <description>&lt;P&gt;actually I am finding a way to create a measure that calculate the sum of the max value in category group,&lt;/P&gt;&lt;P&gt;the result is exactly like this,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;is there a way to change the table into a measure? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 12:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802778#M88246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T12:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: calculate value and drop duplicates in groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802857#M88256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thank you for your feedback, and please check the below picture and the attached pbix file whether it suits your requirement.&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;LI-CODE lang="markup"&gt;Expected outcome measure: =
SUMX (
    SUMMARIZE ( Data, Data[Type], Data[Category] ),
    CALCULATE ( MAX ( Data[Value] ) )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 13:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-value-and-drop-duplicates-in-groups/m-p/2802857#M88256</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-09-28T13:06:06Z</dc:date>
    </item>
  </channel>
</rss>

