<?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: SUMX Different Column Depending On IF Condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222514#M117841</link>
    <description>&lt;P&gt;Try changing the duplicates measure to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Duplicates = CALCULATE(
            COUNT( SalesProfiles[ID_Project] ),
            ALLEXCEPT( SalesProfiles, SalesProfiles[ID_Project])
        )&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 May 2023 15:46:35 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-05-05T15:46:35Z</dc:date>
    <item>
      <title>SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222411#M117832</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello All,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with a measure that is trying to accomplish the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of&amp;nbsp;&lt;STRONG&gt;ID_Tasks &lt;/STRONG&gt;attributed to &lt;STRONG&gt;ID_Project&lt;/STRONG&gt; and I want to find the &lt;STRONG&gt;TotalSales&lt;/STRONG&gt; by summing&amp;nbsp;either&amp;nbsp;&lt;STRONG&gt;TotalSalesSingle&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&lt;/STRONG&gt;&amp;nbsp;depending on if my dynamic selection (slicer on &lt;STRONG&gt;ID_Task&lt;/STRONG&gt;) contains duplicate&amp;nbsp;&lt;STRONG&gt;ID_Project&lt;/STRONG&gt; or not.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have a first measure that checks if my selection contains duplicates or not, and counts them.&amp;nbsp;&amp;nbsp;&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;Duplicates = CALCULATE(COUNT(SalesProfiles[ID_Project]), ALLSELECTED(SalesProfiles), VALUES(SalesProfiles[ID_Project]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I am looking for the following results:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If I select 2&amp;nbsp;&lt;STRONG&gt;ID_Task&lt;/STRONG&gt; that are from different&amp;nbsp;&lt;STRONG&gt;ID_Project,&amp;nbsp;&lt;/STRONG&gt;I want to sum the&amp;nbsp;&lt;STRONG&gt;TotalSalesSingle&lt;/STRONG&gt; value for each.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; If I select 2&amp;nbsp;&lt;STRONG&gt;ID_Task&amp;nbsp;&lt;/STRONG&gt;that are from a shared&amp;nbsp;&lt;STRONG&gt;ID_Project,&amp;nbsp;&lt;/STRONG&gt;I want to sum the&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&amp;nbsp;&lt;/STRONG&gt;value for each.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; If I select all 3&amp;nbsp;&lt;STRONG&gt;ID_Task&amp;nbsp;&lt;/STRONG&gt;, 2 of which share a&amp;nbsp;&lt;STRONG&gt;ID_Project,&amp;nbsp;&lt;/STRONG&gt;and 1 does not; I want to sum the&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&lt;/STRONG&gt; for the 2, and&amp;nbsp;&lt;STRONG&gt;TotalSalesSingle&lt;/STRONG&gt; for the 1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aka it will sum values from either&amp;nbsp;&lt;STRONG&gt;TotalSalesSingle&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;Multi&amp;nbsp;&lt;/STRONG&gt;depending on Duplicates = 1 or != 1, evaluated for each row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Scenarios:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Single Selection:&amp;nbsp; ID_Project&amp;nbsp;&lt;/STRONG&gt;is unique value, returns&amp;nbsp;&lt;STRONG&gt;TotalSalesSingle &lt;/STRONG&gt;for&lt;STRONG&gt; Total Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Multi Selection:&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;ID_Project&lt;/STRONG&gt; is non-unique value, returns&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&amp;nbsp;&lt;/STRONG&gt;for&amp;nbsp;&lt;STRONG&gt;TotalSales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Here you can see that my measure&amp;nbsp;&lt;STRONG&gt;TotalSales&lt;/STRONG&gt; doesnt work.&amp;nbsp; I'd like it to return 231 &amp;amp; 351 (&lt;STRONG&gt;TotalSalesMulti&lt;/STRONG&gt; column)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Multi Selection: All 3 selected.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Doesn't work either. In this case I'd like it to return&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&lt;/STRONG&gt; (231 &amp;amp; 351) for&amp;nbsp;&lt;STRONG&gt;ID_Project = 38515, &lt;/STRONG&gt;and&lt;STRONG&gt; TotalSalesSingle &lt;/STRONG&gt;(856) for&amp;nbsp;&lt;STRONG&gt;ID_Project = 29677.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current measure for&amp;nbsp;&lt;STRONG&gt;TotalSales&amp;nbsp;&lt;/STRONG&gt;which is far from working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales = 
SUMX ( ProjetList, 
    IF(
         [Duplicates] = 1, 
    SUMX ( SalesProfiles , SalesProfiles[TotalSalesSingle] )
    , 
    SUMX ( SalesProfiles , SalesProfiles[TotalSalesMulti] )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included the files below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/f/s!AndVpJp2VQectSrHRNEZnOIC2Kqj?e=CA0QS6" target="_blank" rel="noopener"&gt;https://1drv.ms/f/s!AndVpJp2VQectSrHRNEZnOIC2Kqj?e=CA0QS6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know what you think, and if I wasn't clear about anything.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 14:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222411#M117832</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-05T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222514#M117841</link>
      <description>&lt;P&gt;Try changing the duplicates measure to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Duplicates = CALCULATE(
            COUNT( SalesProfiles[ID_Project] ),
            ALLEXCEPT( SalesProfiles, SalesProfiles[ID_Project])
        )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 May 2023 15:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222514#M117841</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-05T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222547#M117847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456186" data-lia-user-login="Palmtop" class="lia-mention lia-mention-user"&gt;Palmtop&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Total Sales =&lt;BR /&gt;VAR SelectedTasks =&lt;BR /&gt;ALLSELECTED ( ProjetList[ID_Task] )&lt;BR /&gt;RETURN&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( ProjetList[ID_Project] ),&lt;BR /&gt;IF (&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( ProjetList[ID_Task] ),&lt;BR /&gt;ALL ( ProjetList ),&lt;BR /&gt;VALUES ( ProjetList[ID_Project] ),&lt;BR /&gt;SelectedTasks&lt;BR /&gt;)&lt;BR /&gt;) = 1,&lt;BR /&gt;CALCULATE ( SUM ( SalesProfiles[TotalSalesSingle] ) ),&lt;BR /&gt;CALCULATE ( SUM ( SalesProfiles[TotalSalesMulti] ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222547#M117847</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-05T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222560#M117850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&amp;nbsp; I gave it a try but it gave me this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The TotalSales takes the correct values from column "TotalSalesSingle" (856 and 698) but the Total returns 996 instead of 1554.&amp;nbsp; Any thoughts as to why?&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;</description>
      <pubDate>Fri, 05 May 2023 16:15:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222560#M117850</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-05T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222565#M117852</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&amp;nbsp; I gave it a try, but I need it change depending on the dynamic selection.&amp;nbsp; So in this case, with only&amp;nbsp;&lt;STRONG&gt;ID_Task&lt;/STRONG&gt; &lt;STRONG&gt;= 7799&lt;/STRONG&gt; selected, it should give&amp;nbsp;&lt;STRONG&gt;[Duplicates]&lt;/STRONG&gt; &lt;STRONG&gt;= 1.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;It would only return&amp;nbsp;&lt;STRONG&gt;= 2&amp;nbsp;&lt;/STRONG&gt;if both&amp;nbsp;&lt;STRONG&gt;ID_Task = 7799 &amp;amp; 1055&amp;nbsp;&lt;/STRONG&gt;were selected.&amp;nbsp;&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;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:19:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222565#M117852</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-05T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222571#M117853</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456186" data-lia-user-login="Palmtop" class="lia-mention lia-mention-user"&gt;Palmtop&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Total Sales =&lt;BR /&gt;VAR SelectedTasks =&lt;BR /&gt;ALLSELECTED ( ProjetList[ID_Task] )&lt;BR /&gt;VAR AllProjectList =&lt;BR /&gt;ALL ( ProjetList )&lt;BR /&gt;RETURN&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( ProjetList[ID_Project] ),&lt;BR /&gt;IF (&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;AllProjectList,&lt;BR /&gt;ProjetList[ID_Project] = ProjetList[ID_Project]&lt;BR /&gt;&amp;amp;&amp;amp; ProjetList[ID_Task] IN SelectedTasks&lt;BR /&gt;)&lt;BR /&gt;) = 1,&lt;BR /&gt;CALCULATE ( SUM ( SalesProfiles[TotalSalesSingle] ) ),&lt;BR /&gt;CALCULATE ( SUM ( SalesProfiles[TotalSalesMulti] ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:27:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3222571#M117853</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-05T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226376#M118169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I've tried it but again, it will return&amp;nbsp;&lt;STRONG&gt;TotalSalesMulti&lt;/STRONG&gt; if I select all 3&amp;nbsp;&lt;STRONG&gt;ID_Tasks.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this configuration I'd like it to return&amp;nbsp;&lt;STRONG&gt;351, 856, 231&lt;/STRONG&gt; in my&amp;nbsp;&lt;STRONG&gt;TotalSales&lt;/STRONG&gt; column instead of&amp;nbsp;&lt;STRONG&gt;351, 765, 231.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;U&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt;&lt;/U&gt; still return i.e.&amp;nbsp;&lt;STRONG&gt;562&lt;/STRONG&gt; if I only select&amp;nbsp;&lt;STRONG&gt;ID_Task&amp;nbsp;&lt;/STRONG&gt;= 1055.&amp;nbsp; That's the part I'm struggling.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 07:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226376#M118169</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-09T07:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226444#M118179</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456186" data-lia-user-login="Palmtop" class="lia-mention lia-mention-user"&gt;Palmtop&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Any chance you can share your sample file?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226444#M118179</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-09T08:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226556#M118194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, please let me know if the link doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/f/s!AndVpJp2VQectSrHRNEZnOIC2Kqj?e=CA0QS6" target="_blank" rel="noopener nofollow noreferrer"&gt;https://1drv.ms/f/s!AndVpJp2VQectSrHRNEZnOIC2Kqj?e=CA0QS6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 09:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226556#M118194</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-09T09:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226918#M118217</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456186" data-lia-user-login="Palmtop" class="lia-mention lia-mention-user"&gt;Palmtop&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry fo the late response. The problem is coming from the ALLSELECTED in the Duplicate measure. This has to be done manually.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Sales = 
VAR SelectedTable = ALLSELECTED ( SalesProfiles )
RETURN
    SUMX ( 
        SUMMARIZE ( SalesProfiles, ProjetList[ID_Project], ProjetList[ID_Task] ),
        IF (
            CALCULATE ( 
                COUNT ( SalesProfiles[ID_Project] ), 
                SelectedTable, 
                VALUES ( SalesProfiles[ID_Project] ) 
            ) = 1,
            SUM ( SalesProfiles[TotalSalesSingle] ), 
            SUM ( SalesProfiles[TotalSalesMulti] )
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 May 2023 12:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226918#M118217</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-09T12:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX Different Column Depending On IF Condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226996#M118222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not at all!! Happy to say that it works just like needed and I'm learning a lot along the way.&amp;nbsp; Thanks so much for your patience and help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:35:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-Different-Column-Depending-On-IF-Condition/m-p/3226996#M118222</guid>
      <dc:creator>Palmtop</dc:creator>
      <dc:date>2023-05-09T12:35:04Z</dc:date>
    </item>
  </channel>
</rss>

