<?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: unit cost of the last product in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699158#M81583</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;latest price =&amp;nbsp;&lt;BR /&gt;VAR _lastDate = CALCULATE( MAX(&lt;SPAN&gt;coast_2019&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))&lt;BR /&gt;VAR _Result = CALCULATE( SUM(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] =&amp;nbsp;_lastDate))&lt;BR /&gt;RETURN&lt;BR /&gt;_Result &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Aug 2022 11:41:39 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2022-08-14T11:41:39Z</dc:date>
    <item>
      <title>unit cost of the last product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2698689#M81543</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the cost of the product entered from the latest date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the unit amount from the latest date in the cost table. But I couldn't find how to find it with a formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new coast = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[sum maliyet MMM]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;LASTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;coast_2019&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It gives the category totals of the same products with this formula. I want to show the latest unit prices&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&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;&lt;P&gt;&lt;img /&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;</description>
      <pubDate>Sat, 13 Aug 2022 16:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2698689#M81543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-13T16:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: unit cost of the last product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699158#M81583</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;latest price =&amp;nbsp;&lt;BR /&gt;VAR _lastDate = CALCULATE( MAX(&lt;SPAN&gt;coast_2019&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))&lt;BR /&gt;VAR _Result = CALCULATE( SUM(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] =&amp;nbsp;_lastDate))&lt;BR /&gt;RETURN&lt;BR /&gt;_Result &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 11:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699158#M81583</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-14T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: unit cost of the last product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699184#M81588</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the answer. It is an excellent feeling for us to have people who help in such a platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Itemcode P-000009076 code &amp;nbsp;as in the example, but an expression like 134,911,40 appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be 546.20. I think the Itemcode collects and writes its totals. Can you help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 13:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699184#M81588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-14T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: unit cost of the last product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699207#M81590</link>
      <description>&lt;P&gt;I think that problem connected with several prices with one date. We can try use&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;latest price =&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR _LastDate = CALCULATE( MAX(&lt;/SPAN&gt;&lt;SPAN&gt;coast_2019&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]), ALLEXCEPT(coast_2019, coast_2019[ItemCode]))&lt;BR /&gt;VAR _Result = CALCULATE( MAX(coast_2019[coast MMM]), FILTER(coast_2019, coast_2019[InvoiceDate] = _LastDate ))&lt;BR /&gt;RETURN&lt;BR /&gt;_Result&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 14:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699207#M81590</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-14T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: unit cost of the last product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699211#M81591</link>
      <description>&lt;P&gt;you are great, thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 14:23:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unit-cost-of-the-last-product/m-p/2699211#M81591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-14T14:23:44Z</dc:date>
    </item>
  </channel>
</rss>

