<?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: Subtraction is not working for me in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2578911#M73934</link>
    <description>&lt;P&gt;The start and end values come from filters. The Dax formulas are the same but the filters set different results&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;So it appears that is the issue then.&lt;BR /&gt;Do you have any idea how I may trick it into retaining the displayed filter results so that I can get the substraction to be valid?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 02:11:00 GMT</pubDate>
    <dc:creator>charlie7491</dc:creator>
    <dc:date>2022-06-15T02:11:00Z</dc:date>
    <item>
      <title>Subtraction is not working for me</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2576073#M73768</link>
      <description>&lt;DIV&gt;I will like to get the difference between two measure' values&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#AADP MAU Increase = &lt;/SPAN&gt;&lt;SPAN&gt;[#AADP MAU_End]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;[#AADP MAU_Start]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Individually, these show as:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#AADP MAU_Start = 166M&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#AADP MAU_End = 170M&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But when I do the substraction, I am getting 0 or 0.00&lt;BR /&gt;&lt;BR /&gt;I have tried different things, such as the below, but still get 0&lt;BR /&gt;&lt;BR /&gt;#AADP MAU Increase = FORMAT([#AADP MAU_End] - [#AADP MAU_Start], "General Number")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jun 2022 20:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2576073#M73768</guid>
      <dc:creator>charlie7491</dc:creator>
      <dc:date>2022-06-13T20:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction is not working for me</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2577379#M73842</link>
      <description>&lt;P&gt;Are there different filters being applied to the visuals showing the results ?&lt;/P&gt;&lt;P&gt;Try running the below in DAX Studio&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
ROW (
    "#AADP MAU_Start", [#AADP MAU_Start],
    "#AADP MAU_End", [#AADP MAU_End],
    "#AADP MAU Increase", [#AADP MAU Increase],
    "Simple calc", [#AADP MAU_End] - [#AADP MAU_Start]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2577379#M73842</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-14T10:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction is not working for me</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2578911#M73934</link>
      <description>&lt;P&gt;The start and end values come from filters. The Dax formulas are the same but the filters set different results&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;So it appears that is the issue then.&lt;BR /&gt;Do you have any idea how I may trick it into retaining the displayed filter results so that I can get the substraction to be valid?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 02:11:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2578911#M73934</guid>
      <dc:creator>charlie7491</dc:creator>
      <dc:date>2022-06-15T02:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction is not working for me</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2578940#M73937</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp; has hinted at what the problem was.&amp;nbsp; The two values are start and end values that are set by filters.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Dax formulas are the same but the filters set different results. So the calculation is treating both as equal therefore returning 0. The solution is to use something like the below&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AADP MAU_Start = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CustomerAndTasksView[AADP MAU]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[StartDate]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[StartDate]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;AADP MAU_End = calculate(sum(CustomerAndTasksView[AADP MAU]),DimDate[EndDate]=DimDate[EndDate])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Jun 2022 02:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtraction-is-not-working-for-me/m-p/2578940#M73937</guid>
      <dc:creator>charlie7491</dc:creator>
      <dc:date>2022-06-15T02:34:04Z</dc:date>
    </item>
  </channel>
</rss>

