<?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 How to subtract...? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231760#M167366</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help. These are some random figures from 2024 and 2023. Where you see the Total, you see the summarized values of 2024 + 2023. I need to subtract them in the total. Is this possible in an easy way?&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;</description>
    <pubDate>Mon, 07 Oct 2024 13:30:32 GMT</pubDate>
    <dc:creator>hansreivers</dc:creator>
    <dc:date>2024-10-07T13:30:32Z</dc:date>
    <item>
      <title>How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231760#M167366</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help. These are some random figures from 2024 and 2023. Where you see the Total, you see the summarized values of 2024 + 2023. I need to subtract them in the total. Is this possible in an easy way?&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;</description>
      <pubDate>Mon, 07 Oct 2024 13:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231760#M167366</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-07T13:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231782#M167368</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the total level you need to change the logic, please try the below measure..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;AdjustedTotalMeasure = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;IF(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOT(ISINSCOPE('Table'[Year])), -- Checks if the calculation is in the total row&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;SUM('Table'[2024_Column]) - SUM('Table'[2023_Column]), -- Calculation for the total row&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;SUM('Table'[2024_Column]) + SUM('Table'[2023_Column]) -- Regular sum for individual years)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 13:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231782#M167368</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-10-07T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231786#M167369</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I have understood your issue correctly. If you want to subtract the yearly values in the "Total" column instead of the default summation, you can use the following measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values = 
VAR _val2024 = CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2024 )
VAR _val2023 = CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2023 )
RETURN
    IF ( 
        ISINSCOPE ( 'Table'[Year] ), SUM ( 'Table'[Value] ), 
        _val2024 - _val2023
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also included a snapshot of the solution here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't solve your issue, please consider providing a sample dataset and a desired solution sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 13:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231786#M167369</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-07T13:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231827#M167370</link>
      <description>&lt;P&gt;Hi both, thanks for your replies. I tried the solution of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;and this works when I use the SUM of the turnover, but is this also possible when I use a measure?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure is;&lt;/P&gt;&lt;P&gt;Turnover = CALCULATE (SUM( table[turnover])&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231827#M167370</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-07T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231835#M167371</link>
      <description>&lt;P&gt;I'm sorry... it works (off course) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231835#M167371</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-07T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231912#M167372</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I used this measure;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _valthisyear&amp;nbsp; &amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ([turnover], 'Calendar'[Year Index] = &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _valprioryear = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ([turnover], 'Calendar'[Year Index] = &amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; Result = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Year Index] ), [turnover], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _valthisyear - _valprioryear&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I return .. this year, 2024 nicely pops up, when I return prior year, 2023 nicely pops up, but when I return result I get this...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Before the 2023 values, there is a minus and I don't want that...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also want to try to get by the totals a black value when the difference is positive and a red value when the difference is negative. Is that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:36:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231912#M167372</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-07T14:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231929#M167373</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like you are getting the results correctly but, want to color code it based on certain condition. Is that right? Correct me if I'm wrong understanding the issue...&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231929#M167373</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-07T14:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231950#M167375</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 questions;&lt;/P&gt;&lt;P&gt;* I want to have the totals in black or red (positive / negative)&lt;/P&gt;&lt;P&gt;* I don't understand the measure with the variable's. I think when I refer to this year minus prior year, the values of year 2023 (= year index -1), should also also be positive. When I return only 2023 (year index -1), I get those positive numbers. When I return Result, I get 2024 positive, 2023 negative and total is the correct subtraction. But I don't understand why than 2023 is negative...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use 2024 and 2023, the measure works perfect. When I use year index 0 and year index -1, the year 2023 (year index minus 1) shows constant the negative value in stead off the normal positive value for 2023.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 15:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4231950#M167375</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-07T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4232220#M167380</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For colours, you can create a measure similar to the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values Colors = 
VAR _color = IF([Values] &amp;lt; 0, "#F47174", "#000000")
RETURN
    IF ( 
        ISINSCOPE ( 'Table'[Year] ), "#000000", 
        _color
    )&lt;/LI-CODE&gt;&lt;P&gt;Then, you can apply it to the "Value" field as shown in the GIF below:&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;Regarding the negative numbers, I'm not sure why you are getting negative values; it shouldn't be the case. Please provide a sample of the dataset (anonymized) so that I can have a better look at the data structure and provide you with the appropriate measure that should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4232220#M167380</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-07T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4233131#M167420</link>
      <description>&lt;P&gt;I've send you a message.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4233131#M167420</guid>
      <dc:creator>hansreivers</dc:creator>
      <dc:date>2024-10-08T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract...?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4234069#M167457</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637705" data-lia-user-login="hansreivers" class="lia-mention lia-mention-user"&gt;hansreivers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use this formula instead to get the desired result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values Year Index = 
VAR _valty = CALCULATE ([Omzet], 'Calendar'[Year Index] =  0 )
VAR _valpy = CALCULATE ([Omzet], 'Calendar'[Year Index] =  -1 )
VAR Result = IF ( 
                    ISINSCOPE ( 'Calendar'[Year] ), [Omzet], 
                    _valty - _valpy
    )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that you are using &lt;STRONG&gt;"ISINSCOPE (' Calendar '[Year Index])"&lt;/STRONG&gt; instead of &lt;STRONG&gt;"ISINSCOPE (' Calendar '[Year])"&lt;/STRONG&gt;. This seems to be the root cause of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the rows, we have the &lt;STRONG&gt;'Calendar'[Year]&lt;/STRONG&gt; column where we check the scope, not &lt;STRONG&gt;'Calendar'[Year Index]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;As a result, the DAX formula you are using is incorrect. Here is your DAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values Year Index = 
VAR _valty = CALCULATE ([Omzet], 'Calendar'[Year Index] =  0 )
VAR _valpy = CALCULATE ([Omzet], 'Calendar'[Year Index] =  -1 )
VAR Result = IF ( 
                    ISINSCOPE ( 'Calendar'[Year Index] ), [Omzet], 
                    _valty - _valpy
    )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps to clarify the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udit&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 19:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-subtract/m-p/4234069#M167457</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-08T19:23:57Z</dc:date>
    </item>
  </channel>
</rss>

