<?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: Subtracting values up column databases in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076389#M106973</link>
    <description>&lt;P&gt;Fantastic!&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 05:26:39 GMT</pubDate>
    <dc:creator>matrix_user</dc:creator>
    <dc:date>2023-02-12T05:26:39Z</dc:date>
    <item>
      <title>Subtracting values up column databases</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076360#M106968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What DAX measure (or column) would be required if I wanted to count the difference in values within a column of a fact table - per year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below the subtract of 8 (2021) from 5 (2010) gives me 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Kudos to who can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 03:42:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076360#M106968</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2023-02-12T03:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting values up column databases</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076374#M106970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a measure.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Diff: =
VAR _previousvalue =
    CALCULATE (
        [Total coffees:],
        OFFSET ( -1, ALL ( Data[Year] ), ORDERBY ( Data[Year], ASC ) )
    )
RETURN
    IF (
        NOT ISBLANK ( _previousvalue ) &amp;amp;&amp;amp; HASONEVALUE ( Data[Year] ),
        [Total coffees:] - _previousvalue
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 12 Feb 2023 04:46:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076374#M106970</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-12T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting values up column databases</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076389#M106973</link>
      <description>&lt;P&gt;Fantastic!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 05:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-values-up-column-databases/m-p/3076389#M106973</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2023-02-12T05:26:39Z</dc:date>
    </item>
  </channel>
</rss>

