<?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: Calculated column with sum as function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900233#M94433</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;Really thanks for your suggestion.&lt;/P&gt;&lt;P&gt;You are right, just use Variable and simply filter and Aggregation is better than Calculate in&amp;nbsp;a&amp;nbsp;&lt;STRONG&gt;calculated column&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The context transition is too heavy.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 13:00:39 GMT</pubDate>
    <dc:creator>zerotyper</dc:creator>
    <dc:date>2022-11-11T13:00:39Z</dc:date>
    <item>
      <title>Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2899898#M94402</link>
      <description>&lt;P&gt;I'm looking for a formula that uses sums as logic that we know in Excel. I want to add a calculated column (orange) in the table below. That sums values of column value if the column values of date and color are equal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I once came across a formula with the EARLIER function, but I don't know the exact formula to get it to work.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 10:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2899898#M94402</guid>
      <dc:creator>brief001</dc:creator>
      <dc:date>2022-11-11T10:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900141#M94420</link>
      <description>&lt;P&gt;Hint: &lt;EM&gt;You should never use EARLIER. There is a much better alternative and it's called VARIABLES.&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;// This is the formula for your column...

[Total Value] =
var CurrentDate = YourTable[Date]
var CurrentColor = YourTable[Color]
var Output =
    sumx(
        filter(
            YourTable,
            YourTable[Date] = CurrentDate
            &amp;amp;&amp;amp;
            YourTable[Color] = CurrentColor
        ),
        YourTable[Value]
    )
return
    Output&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900141#M94420</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-11T12:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900154#M94423</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284859" data-lia-user-login="brief001" class="lia-mention lia-mention-user"&gt;brief001&lt;/a&gt;&amp;nbsp;Hope this is the result you want.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900154#M94423</guid>
      <dc:creator>zerotyper</dc:creator>
      <dc:date>2022-11-11T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900198#M94430</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470573" data-lia-user-login="zerotyper" class="lia-mention lia-mention-user"&gt;zerotyper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A word of caution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Using CALCULATE in calculated column is a no-no&lt;/STRONG&gt;. This slows DAX tremendously down even on moderate sized sets. I've seen many a time formulas like this that brought the engine down to a complete freeze.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:41:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900198#M94430</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-11T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900233#M94433</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;Really thanks for your suggestion.&lt;/P&gt;&lt;P&gt;You are right, just use Variable and simply filter and Aggregation is better than Calculate in&amp;nbsp;a&amp;nbsp;&lt;STRONG&gt;calculated column&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The context transition is too heavy.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:00:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900233#M94433</guid>
      <dc:creator>zerotyper</dc:creator>
      <dc:date>2022-11-11T13:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column with sum as function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900282#M94439</link>
      <description>&lt;P&gt;I want to thank you both (&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470573" data-lia-user-login="zerotyper" class="lia-mention lia-mention-user"&gt;zerotyper&lt;/a&gt;&amp;nbsp; ) for the quick and well-functioning response. I have been helped tremendously.&lt;BR /&gt;&lt;BR /&gt;As a result of &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;'s additional explanation, I naturally opt for his solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and have a nice weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-with-sum-as-function/m-p/2900282#M94439</guid>
      <dc:creator>brief001</dc:creator>
      <dc:date>2022-11-11T13:26:56Z</dc:date>
    </item>
  </channel>
</rss>

