<?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: Sum values in Column C where the value in Column B matches value in Column A in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4335746#M172162</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 23:11:16 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-12-18T23:11:16Z</dc:date>
    <item>
      <title>Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4335617#M172151</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;In my table below, I would like to sum the values in "FROM_COUNT2" where the value in "FROM_PRODUCTID" matches the vaue in "TO_PRODUCTID".&amp;nbsp; In this example, the TO_COUNT2 column should contain the sum of all the FROM_COUNT2 values where the TO_PRODUCTID matches the FROM_PRODUCTID.&amp;nbsp; In excel, I would use SUMIF to do this easily.&amp;nbsp; Sometimes, there is more than one value in the TO_PRODUCTID that matches the FROM_PRODUCTID.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in Power Pivot but I assume the same formula I would use in other power platforms like BI or query.&amp;nbsp; Let me know if it should be posted elsewhere.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:45:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4335617#M172151</guid>
      <dc:creator>duane1</dc:creator>
      <dc:date>2024-12-18T19:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4335746#M172162</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 23:11:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4335746#M172162</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-18T23:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4336185#M172178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="622303" data-lia-user-login="duane1" class="lia-mention lia-mention-user"&gt;duane1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Would you like to achieve the following results?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try to add a new column and use the code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TO_COUNT2 = 
CALCULATE(
    SUM(TEST[FROM_COUNT2]),
    FILTER(
        TEST,
        TEST[TO_PRODUCTID] = EARLIER(TEST[FROM_PRODUCTID])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide example data or sample files here if you have any confused?&amp;nbsp;We could offer you more help if we have information in detail. There is sensitive data that can be removed in advance.&amp;nbsp;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C02%7Cv-xinc%40microsoft.com%7C578dbad5d3184a7e81ca08dd1d93d92e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638699243225675793%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=RbSYF2131G9ESB68v4IhcVIrjugtEyjQz8Niro9rlxA%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your understanding. Your time and cooperation are much valued by us. We are looking forward to hearing from you to assist further.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lucy Chen&lt;/P&gt;
&lt;P&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;Accept it&lt;/EM&gt;&lt;/STRONG&gt; as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;STRONG&gt;Thanks a lot!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 06:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4336185#M172178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-19T06:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4336215#M172180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="622303" data-lia-user-login="duane1" class="lia-mention lia-mention-user"&gt;duane1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Create a new calculated column using this DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TO_COUNT2 = 
CALCULATE(
    SUM(TableName[FROM_COUNT2]),
    FILTER(
        TableName,
        TableName[TO_PRODUCTID] = EARLIER(TableName[FROM_PRODUCTID])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace table and columns names with your owns&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 06:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4336215#M172180</guid>
      <dc:creator>Bibiano_Geraldo</dc:creator>
      <dc:date>2024-12-19T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337291#M172219</link>
      <description>&lt;P&gt;Thanks, this worked.&amp;nbsp; I had a feeling EARLIER was involved.&amp;nbsp; I was learning about it.&amp;nbsp; This is the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:51:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337291#M172219</guid>
      <dc:creator>duane1</dc:creator>
      <dc:date>2024-12-19T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337293#M172220</link>
      <description>&lt;P&gt;Thanks, this is what worked.&amp;nbsp; I received the same help from another.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337293#M172220</guid>
      <dc:creator>duane1</dc:creator>
      <dc:date>2024-12-19T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values in Column C where the value in Column B matches value in Column A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337353#M172227</link>
      <description>&lt;P&gt;EARLIER is a legacy function, and not recommended. Use variables.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 16:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-values-in-Column-C-where-the-value-in-Column-B-matches-value/m-p/4337353#M172227</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-19T16:33:36Z</dc:date>
    </item>
  </channel>
</rss>

