<?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: Calculation Error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314488#M123971</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ASP Growth =
[ASP] - CALCULATE ( [ASP], DATEADD ( 'Dim Time'[Full_Date], -1, YEAR ) )
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 04 Jul 2023 12:45:59 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-07-04T12:45:59Z</dc:date>
    <item>
      <title>Calculation Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314387#M123965</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate ASP Growth when I put Year in the table it is showing correct value when i put month names in the table it is showing wrong values can anyone help me&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;;et me explain in details let say ASP growth for 2022 it is showing correct in the above picture 2022 - 53-45 = 8 and this is the DAX i am using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;ASP Growth = [ASP] - CALCULATE([ASP], PREVIOUSYEAR('Dim Time'[Full_Date]))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;and when I put month in the table the values showing wrong i dont know how to put month filter in this dax I tried so many ways&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;2022- january the value should be 67-45 = 22 but it is showing 17&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;this is my month &amp;amp; year column&amp;nbsp;&lt;STRONG&gt;'Dim Time'[FIN_MONTH] &amp;amp;&amp;nbsp;'Dim Time'[FIN_YEAR] and [ASP] is a measure.&amp;nbsp;&lt;/STRONG&gt;can anyone help me please. Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314387#M123965</guid>
      <dc:creator>Srinivas3350</dc:creator>
      <dc:date>2023-07-04T11:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314488#M123971</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ASP Growth =
[ASP] - CALCULATE ( [ASP], DATEADD ( 'Dim Time'[Full_Date], -1, YEAR ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jul 2023 12:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314488#M123971</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-04T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314511#M123976</link>
      <description>&lt;P&gt;Thank you, I have added this&amp;nbsp; DAX but still the values are not correct is it because we are using company calender&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;</description>
      <pubDate>Tue, 04 Jul 2023 13:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314511#M123976</guid>
      <dc:creator>Srinivas3350</dc:creator>
      <dc:date>2023-07-04T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314604#M123982</link>
      <description>&lt;P&gt;It could be. There's a couple of things you can check. Make sure that there is an entry for every day from Jan 1st to Dec 31st for each year in your data. Also, make sure that you have marked the calendar table as a date table. If both of those are OK then it should work.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Error/m-p/3314604#M123982</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-04T13:49:57Z</dc:date>
    </item>
  </channel>
</rss>

