<?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 sum culumns without duplicate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-culumns-without-duplicate/m-p/2923927#M95956</link>
    <description>&lt;P&gt;Good morning All,&lt;/P&gt;&lt;P&gt;i'm new with DAX, please i need you help,&lt;/P&gt;&lt;P&gt;i have a table of products as you can see in this image:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i need to calculate the sum of the two columns (Quantite * Price) but only the last creation date for each product, because every creation date : the quantite and rice change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me,&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 09:19:51 GMT</pubDate>
    <dc:creator>Sofiane85</dc:creator>
    <dc:date>2022-11-23T09:19:51Z</dc:date>
    <item>
      <title>sum culumns without duplicate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-culumns-without-duplicate/m-p/2923927#M95956</link>
      <description>&lt;P&gt;Good morning All,&lt;/P&gt;&lt;P&gt;i'm new with DAX, please i need you help,&lt;/P&gt;&lt;P&gt;i have a table of products as you can see in this image:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i need to calculate the sum of the two columns (Quantite * Price) but only the last creation date for each product, because every creation date : the quantite and rice change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me,&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:19:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-culumns-without-duplicate/m-p/2923927#M95956</guid>
      <dc:creator>Sofiane85</dc:creator>
      <dc:date>2022-11-23T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: sum culumns without duplicate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-culumns-without-duplicate/m-p/2924105#M95970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, or how your desired outcome looks like, but 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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected outcome measure: =
VAR _latestdate =
    ADDCOLUMNS (
        DISTINCT ( Data[Product ID] ),
        "@latestdate", CALCULATE ( MAX ( Data[Creation Date] ) )
    )
RETURN
    CALCULATE (
        SUMX ( Data, Data[Quantity] * Data[Price] ),
        TREATAS ( _latestdate, Data[Product ID], Data[Creation Date] )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-culumns-without-duplicate/m-p/2924105#M95970</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-23T10:18:16Z</dc:date>
    </item>
  </channel>
</rss>

