<?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 YTD showing two different values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-showing-two-different-values/m-p/2813732#M89138</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two reports where I use the same YTD dax measure, but the result is really different.&lt;/P&gt;&lt;P&gt;On the 1st table the YTD is giving the running total, but on the second table it seems to calculating avg? Which one is correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&amp;nbsp;&lt;EM&gt;Net Churn - 30D% YTD = CALCULATE([Net Churn - 30D%], DATESYTD('&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_right:"&gt;🔎&lt;/span&gt;Calendar'[Date]))&lt;/EM&gt;&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;Measure:&amp;nbsp;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;CHURN%_YTD = CALCULATE([NET_CHURN%], DATESYTD(monthly_churn_db_dates[DATE_KEY]))&lt;/FONT&gt;&lt;/EM&gt;&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;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 11:10:14 GMT</pubDate>
    <dc:creator>ROG</dc:creator>
    <dc:date>2022-10-03T11:10:14Z</dc:date>
    <item>
      <title>YTD showing two different values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-showing-two-different-values/m-p/2813732#M89138</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two reports where I use the same YTD dax measure, but the result is really different.&lt;/P&gt;&lt;P&gt;On the 1st table the YTD is giving the running total, but on the second table it seems to calculating avg? Which one is correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&amp;nbsp;&lt;EM&gt;Net Churn - 30D% YTD = CALCULATE([Net Churn - 30D%], DATESYTD('&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_right:"&gt;🔎&lt;/span&gt;Calendar'[Date]))&lt;/EM&gt;&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;Measure:&amp;nbsp;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;CHURN%_YTD = CALCULATE([NET_CHURN%], DATESYTD(monthly_churn_db_dates[DATE_KEY]))&lt;/FONT&gt;&lt;/EM&gt;&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;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 11:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-showing-two-different-values/m-p/2813732#M89138</guid>
      <dc:creator>ROG</dc:creator>
      <dc:date>2022-10-03T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: YTD showing two different values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-showing-two-different-values/m-p/2813746#M89140</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For YTD calculations and time intelligence in general I would always recommend using a separate calendar table. The logic you use in your first measure involwing calendar is the correct way to utilize this dax and I recommend using it as is or crating a calculation group with that logic.&lt;BR /&gt;&lt;BR /&gt;E.g. CALCULATE(SELECTEDMEASURE(),DATESYTD('Calendar'[date]))&lt;BR /&gt;&lt;BR /&gt;For more information on calculation groups and time intelligence check this articel by sqlbi:&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/calculation-groups/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/calculation-groups/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 11:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-showing-two-different-values/m-p/2813746#M89140</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-10-03T11:23:32Z</dc:date>
    </item>
  </channel>
</rss>

