<?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: Computing a sum that depends on the max of other column, which depends on other column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2983329#M100050</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;timeminutes expected result: =
VAR _maxversiontable =
    GROUPBY (
        Data,
        Data[idproject],
        "@maxversion", MAXX ( CURRENTGROUP (), Data[version] )
    )
RETURN
    IF (
        HASONEVALUE ( Data[iddate] ),
        CALCULATE (
            SUM ( Data[timeminutes] ),
            TREATAS ( _maxversiontable, Data[idproject], Data[version] )
        )
    )
&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 22 Dec 2022 04:24:07 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-12-22T04:24:07Z</dc:date>
    <item>
      <title>Computing a sum that depends on the max of other column, which depends on other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2982812#M100022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering the example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to compute the sum of timeminutes column for the max value of version column within each idproject column (yellow cells) for each iddate. The result should be the one shown on the right table. What's the best way to do this with dax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 21:56:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2982812#M100022</guid>
      <dc:creator>areiasfi</dc:creator>
      <dc:date>2022-12-21T21:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a sum that depends on the max of other column, which depends on other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2983329#M100050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;timeminutes expected result: =
VAR _maxversiontable =
    GROUPBY (
        Data,
        Data[idproject],
        "@maxversion", MAXX ( CURRENTGROUP (), Data[version] )
    )
RETURN
    IF (
        HASONEVALUE ( Data[iddate] ),
        CALCULATE (
            SUM ( Data[timeminutes] ),
            TREATAS ( _maxversiontable, Data[idproject], Data[version] )
        )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 04:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2983329#M100050</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-12-22T04:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a sum that depends on the max of other column, which depends on other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2983749#M100067</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Would this also work if the max depends on more than one column? For example if I need to consider for the max columns idproject, idcampaign, idemployee, etc?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 08:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2983749#M100067</guid>
      <dc:creator>areiasfi</dc:creator>
      <dc:date>2022-12-22T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a sum that depends on the max of other column, which depends on other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2984142#M100096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message. It works if the additional columns are included inside the measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Computing-a-sum-that-depends-on-the-max-of-other-column-which/m-p/2984142#M100096</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-12-22T12:12:14Z</dc:date>
    </item>
  </channel>
</rss>

