<?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: YTD doesn't return the right value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560394#M137219</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302339" data-lia-user-login="NipawanV" class="lia-mention lia-mention-user"&gt;NipawanV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything seems OK. what are you expected price YTD on different months?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 07:30:31 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-11-30T07:30:31Z</dc:date>
    <item>
      <title>YTD doesn't return the right value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560301#M137207</link>
      <description>&lt;P&gt;I created YTD formula but it doesn't return the expected value YTD value. Do you have any clue?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Customer Price YTD =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[Customer Price]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&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;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;Current Price is the mesure field:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CustomerPrice = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; SalesAmount = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(F_PricingDashboard[Sales Amount Domestic])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; SalesQTY = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(F_PricingDashboard[Sales Quantity (Sales Time)])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(SalesAmount,SalesQTY,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have Date table well set start from 01/01/2020 etc.&lt;BR /&gt;&lt;BR /&gt;I test with the other measure field that link with the other date table. Formula look ok.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 06:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560301#M137207</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2023-11-30T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: YTD doesn't return the right value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560394#M137219</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302339" data-lia-user-login="NipawanV" class="lia-mention lia-mention-user"&gt;NipawanV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything seems OK. what are you expected price YTD on different months?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:30:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560394#M137219</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-30T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: YTD doesn't return the right value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560591#M137239</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just want to cross-check if the result given in the first table is correct calculation of YTD .&amp;nbsp; As to my understanding the YTD suppose to be like in this figure below and the example from previous table on my second picture that show YTD of the Est. Reveue YTD as it's suppose to be which is quite correct in my opinion.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So if it's correct.&amp;nbsp; I want to know how does PBI calculate Customer Price YTD on the above table to get such figures.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 09:06:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-doesn-t-return-the-right-value/m-p/3560591#M137239</guid>
      <dc:creator>NipawanV</dc:creator>
      <dc:date>2023-11-30T09:06:39Z</dc:date>
    </item>
  </channel>
</rss>

