<?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 Measure for max of a group where the total is the sum of the unique max value for each group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-max-of-a-group-where-the-total-is-the-sum-of-the/m-p/685397#M503</link>
    <description>&lt;P&gt;I have this data set with some weekly data.&lt;/P&gt;&lt;P&gt;For the alllocated FFE&amp;nbsp; the value for each week is repeated for a given ID&lt;/P&gt;&lt;P&gt;I want a measure that shows me the sum value for each week, but the total for the same measure should only be the sum of the distinct values across all the weeks for each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So the value for week 201902 would be 400 without the ID in the table as two IDs has values for week 2&lt;/P&gt;&lt;P&gt;And the total should be=400 (220+180) as it should be the total for each ID's distinct value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I have right now is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(HASONEFILTER('Allocation Info'[Allocation YearWeek]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(FILTER('Allocation Info';'Allocation Info'[R/I]=0);'Allocation Info'[FFE_Src]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(VALUES('Allocation Info'[Allocation YearWeek]);CALCULATE(MAX('Allocation Info'[FFE_Src]);FILTER('Allocation Info';'Allocation Info'[R/I]=0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;But this part isn't really working:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(VALUES('Allocation Info'[Allocation YearWeek]);CALCULATE(MAX('Allocation Info'[FFE_Src]);FILTER('Allocation Info';'Allocation Info'[R/I]=0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As I am getting the sum of all the records...&lt;/DIV&gt;&lt;DIV&gt;This measure should also work without the ID present in the table (so just the weeks and the measure)&lt;/DIV&gt;&lt;DIV&gt;It seems like the&amp;nbsp;&lt;SPAN&gt;IF(HASONEFILTER('Allocation Info'[Allocation YearWeek]); part is not really working&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 May 2019 12:13:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-07T12:13:44Z</dc:date>
    <item>
      <title>Measure for max of a group where the total is the sum of the unique max value for each group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-max-of-a-group-where-the-total-is-the-sum-of-the/m-p/685397#M503</link>
      <description>&lt;P&gt;I have this data set with some weekly data.&lt;/P&gt;&lt;P&gt;For the alllocated FFE&amp;nbsp; the value for each week is repeated for a given ID&lt;/P&gt;&lt;P&gt;I want a measure that shows me the sum value for each week, but the total for the same measure should only be the sum of the distinct values across all the weeks for each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So the value for week 201902 would be 400 without the ID in the table as two IDs has values for week 2&lt;/P&gt;&lt;P&gt;And the total should be=400 (220+180) as it should be the total for each ID's distinct value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I have right now is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(HASONEFILTER('Allocation Info'[Allocation YearWeek]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(FILTER('Allocation Info';'Allocation Info'[R/I]=0);'Allocation Info'[FFE_Src]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(VALUES('Allocation Info'[Allocation YearWeek]);CALCULATE(MAX('Allocation Info'[FFE_Src]);FILTER('Allocation Info';'Allocation Info'[R/I]=0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;But this part isn't really working:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(VALUES('Allocation Info'[Allocation YearWeek]);CALCULATE(MAX('Allocation Info'[FFE_Src]);FILTER('Allocation Info';'Allocation Info'[R/I]=0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As I am getting the sum of all the records...&lt;/DIV&gt;&lt;DIV&gt;This measure should also work without the ID present in the table (so just the weeks and the measure)&lt;/DIV&gt;&lt;DIV&gt;It seems like the&amp;nbsp;&lt;SPAN&gt;IF(HASONEFILTER('Allocation Info'[Allocation YearWeek]); part is not really working&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2019 12:13:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-max-of-a-group-where-the-total-is-the-sum-of-the/m-p/685397#M503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for max of a group where the total is the sum of the unique max value for each group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-max-of-a-group-where-the-total-is-the-sum-of-the/m-p/685458#M505</link>
      <description>&lt;P&gt;Turns out the solution was alot more simple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(VALUES('Allocation Info'[Allocation YearWeek]); [FFE])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where [FFE] is just a notmal SUM of&amp;nbsp;'Allocation Info'[FFE_Src]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2019 12:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-max-of-a-group-where-the-total-is-the-sum-of-the/m-p/685458#M505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T12:29:49Z</dc:date>
    </item>
  </channel>
</rss>

