<?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: sum of a calculated measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948856#M10527</link>
    <description>&lt;P&gt;table is a dummy name i used here and fact table are hidden from the slicer . i use only dimension slicer. i agree with ur&amp;nbsp; suggestions, i need previous record of date as well , thats y i gave date there. currently i need sum of new_revenue .please help me to write that dax.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 12:50:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-26T12:50:39Z</dc:date>
    <item>
      <title>sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738#M10508</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I created calculated measure based on two calculated measures .&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;previous_year_revenu = CALCULATE(SUM(Table[REVENUE]);SAMEPERIODLASTYEAR(Table[BUSINESS_DATE].[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;previous_year_exchange_rate =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE([Exchange_rate];SAMEPERIODLASTYEAR(Table[BUSINESS_DATE].[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;I am getting the SUM of that calculated measure 'new_revenue' wrong. I couldn't figure it out how to write an expression to SUM the calculated measure using DAX even after looking into forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one help me with an expression to find the SUM of a calculated measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here expected sum is 2000 ( 200+1800 ) but value is coming like 3200 which 4000 * 0.8 . but i need exact sum .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;someone please help me??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample data :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;previous_year_revenue&lt;/TD&gt;&lt;TD&gt;previous_year_exchange_rate&lt;/TD&gt;&lt;TD&gt;new_revenue = (previous_year_revenue) * (previous_year_exchange_rate)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;TD&gt;0.6&lt;/TD&gt;&lt;TD&gt;1800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sum = 4000&lt;/TD&gt;&lt;TD&gt;sum = 0.8&lt;/TD&gt;&lt;TD&gt;sum = 4000*0.8 = 3200 ( expected sum = 2000)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 11:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948738#M10508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T11:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948764#M10512</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;You have to iterate the units of time with SUMX (probably years) but I can't tell you more than that because I don't have enough information about the model and underlying assumptions. If your revenue measures are only relevant for full years, then you should make sure they are calculated only when there's a full year in view.&lt;BR /&gt;&lt;BR /&gt;By the way, I can immediately see you're not designing the model the way it should be. If you want to listen... Please create a proper Date table in the model and stop relying on the automatic behaviour of PBI. Unless you want to have problems later. A proper Calendar dimension should always be present in a model that uses time calculations.&lt;BR /&gt;&lt;BR /&gt;The naming (if that's final) is also something you should pay a lot of attention to. Naming a table 'Table' is not particularly helpful.&lt;BR /&gt;&lt;BR /&gt;SUM(Table[REVENUE]) should be a measure itself. You should build more complex measures from simpler ones, not from ground up.&lt;BR /&gt;&lt;BR /&gt;Also, bear in mind that fact tables should be hidden totally from view and slicing should be done via dimensions only.&lt;BR /&gt;&lt;BR /&gt;But... You do as you please, of course.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 26 Feb 2020 11:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948764#M10512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948856#M10527</link>
      <description>&lt;P&gt;table is a dummy name i used here and fact table are hidden from the slicer . i use only dimension slicer. i agree with ur&amp;nbsp; suggestions, i need previous record of date as well , thats y i gave date there. currently i need sum of new_revenue .please help me to write that dax.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:50:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948856#M10527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T12:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948885#M10530</link>
      <description>&lt;P&gt;HI&lt;BR /&gt;Try like this. hope it will help u&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/948885#M10530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/949000#M10539</link>
      <description>&lt;P&gt;I did say I can't because I don't know the model. Please take a s/shot of it and paste here. If you only want this to work for VISIBLE YEARS, then you'll need something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sumx(
    values( Table[Years] ),
    [new revenue]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Best&lt;BR /&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/949000#M10539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: sum of a calculated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/3192052#M115778</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out how to create a YTD SUM for a visual built from a calucated measure. The Sum I would like to see is S/S Variance YTD, can someone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;See snipshot below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 17:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-a-calculated-measure/m-p/3192052#M115778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-17T17:21:53Z</dc:date>
    </item>
  </channel>
</rss>

