<?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 Calculated column subtract values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524334#M156352</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;i want to have a calculated coulmn called diff. Here i want to substract the value for each Cat -100 (actually the value from Car OEE100. But can be also use a constant if easier.&lt;/P&gt;&lt;P&gt;Like Cat="" Availability" 69.5340... - 100 and write the result in column diff.&lt;/P&gt;&lt;P&gt;Next Cat = "Performance" 62.192... - 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thx to all&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 07:24:45 GMT</pubDate>
    <dc:creator>pfiloch</dc:creator>
    <dc:date>2023-11-09T07:24:45Z</dc:date>
    <item>
      <title>Calculated column subtract values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524334#M156352</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;i want to have a calculated coulmn called diff. Here i want to substract the value for each Cat -100 (actually the value from Car OEE100. But can be also use a constant if easier.&lt;/P&gt;&lt;P&gt;Like Cat="" Availability" 69.5340... - 100 and write the result in column diff.&lt;/P&gt;&lt;P&gt;Next Cat = "Performance" 62.192... - 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thx to all&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 07:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524334#M156352</guid>
      <dc:creator>pfiloch</dc:creator>
      <dc:date>2023-11-09T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column subtract values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524457#M156353</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="642155" data-lia-user-login="pfiloch" class="lia-mention lia-mention-user"&gt;pfiloch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to add a column like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;column = 
VAR _valuepre =
MAXX(
    TOPN(
        1,    
        FILTER(data, data[Index]&amp;lt;EARLIER(data[index])), 
        data[index]
    ),    
    data[value]
)
RETURN
[Value] - _valuepre&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it worked like:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 08:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524457#M156353</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-09T08:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column subtract values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524615#M156354</link>
      <description>&lt;P&gt;Thx for the reply. But for row 2 i need value -38 since 62-100 is the substraction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx a lot&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 09:16:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3524615#M156354</guid>
      <dc:creator>pfiloch</dc:creator>
      <dc:date>2023-11-09T09:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column subtract values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3526554#M156355</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="642155" data-lia-user-login="pfiloch" class="lia-mention lia-mention-user"&gt;pfiloch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try out the proposal with your own dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 01:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3526554#M156355</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-10T01:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column subtract values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3526705#M156356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Share data in a format that can be pasted in an MS Excel file.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:57:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-subtract-values/m-p/3526705#M156356</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-11-10T02:57:10Z</dc:date>
    </item>
  </channel>
</rss>

