<?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: How to calculate Real GDP in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2722006#M83045</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372362" data-lia-user-login="Radhika_Kanaka" class="lia-mention lia-mention-user"&gt;Radhika_Kanaka&lt;/a&gt; , if you always need the price of 2000 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a new column&lt;/P&gt;
&lt;P&gt;= maxx(filter(Table, Table[Year] =2000) , [Price]) * [Quantity]&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 03:59:30 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-08-24T03:59:30Z</dc:date>
    <item>
      <title>How to calculate Real GDP in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2721767#M83034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculate Real GDP for my Data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I calculated Nominal GDP by multiplying price index and Quantity index .&lt;/P&gt;&lt;P&gt;To calculate Real GDP, I need to multiply quantity index of base year with price index of the previous year. I am trying to create a calculated column and measure but not successful. Please provide your inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data for reference:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am taking 2001 as the base year . I need to calculate real GDP by multiplying 2001 quantity with 2000 price and also 2001 quantity with 2002 price. Please let me know what logic can be used , as I tried creating calculated columns and did not work .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Radhika Lanka&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 01:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2721767#M83034</guid>
      <dc:creator>Radhika_Kanaka</dc:creator>
      <dc:date>2022-08-24T01:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Real GDP in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2722006#M83045</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372362" data-lia-user-login="Radhika_Kanaka" class="lia-mention lia-mention-user"&gt;Radhika_Kanaka&lt;/a&gt; , if you always need the price of 2000 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a new column&lt;/P&gt;
&lt;P&gt;= maxx(filter(Table, Table[Year] =2000) , [Price]) * [Quantity]&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 03:59:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2722006#M83045</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-24T03:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Real GDP in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2723493#M83161</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; thanks much for the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you also be able to provide details on how to find Nominal GDP, Real GDP ? I have been trying to calculate GDP for the above sample data .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Radhika Lanka&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 13:51:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2723493#M83161</guid>
      <dc:creator>Radhika_Kanaka</dc:creator>
      <dc:date>2022-08-24T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Real GDP in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2728211#M83466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372362" data-lia-user-login="Radhika_Kanaka" class="lia-mention lia-mention-user"&gt;Radhika_Kanaka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to try this measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GDP = 
VAR _CY_Quantity = CALCULATE(SUM('Table'[quantity]))
VAR _LY_Price = CALCULATE(SUM('Table'[price]),FILTER(ALL('Table'),'Table'[year] =  MAX('Table'[year])-1))
VAR _NY_Price = CALCULATE(SUM('Table'[price]),FILTER(ALL('Table'),'Table'[year] =  MAX('Table'[year])+1))
RETURN
_CY_Quantity * _LY_Price + _CY_Quantity * _NY_Price&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 08:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Real-GDP-in-DAX/m-p/2728211#M83466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-26T08:32:13Z</dc:date>
    </item>
  </channel>
</rss>

