<?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: How to Sum and accurately summarize when conditions are in place in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320809#M124277</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586013" data-lia-user-login="Nico_89" class="lia-mention lia-mention-user"&gt;Nico_89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Revenue X =&lt;BR /&gt;SUMX (&lt;BR /&gt;CROSSJOIN ( 'Master Accounts Bound', VALUES ( 'Carriers'[FRS_Product] ) ),&lt;BR /&gt;IF (&lt;BR /&gt;'Carriers'[FRS_Product] = TRUE,&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount] + 'Master Accounts Bound'[Policy Fee],&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 16:35:55 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-07-07T16:35:55Z</dc:date>
    <item>
      <title>How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320747#M124275</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a Sum calculation based on several columns per row, there is an identifier that indicates that 3 columns should be included in the sum, and for any others only 2 columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am having is that the row level calculation is correct and works perfectly, but when grouping by customers the identifier gets ignored, and the total sum aggregates the 2-column formula when in reality there is an internal item that has the "True" identifier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The second row on the example above shows the calculation when the identifier is&amp;nbsp;"True", and yet the total amount does not show the actual sum of the 2 rows that are part of the customer revenue total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps using summarize will solve the issue but I don't understand how the syntax will work on my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried different measures and all end up the same, see them below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &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; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Carriers'&lt;/SPAN&gt;&lt;SPAN&gt;[FRS_Product]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;TRUE&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;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&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; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Renewal Net House Commission]&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; + &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Agency Fees.amount]&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; + &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Policy Fee]&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;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&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; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Renewal Net House Commission]&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; + &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Agency Fees.amount]&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; ) &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;P&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue X = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&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; &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; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Carriers'&lt;/SPAN&gt;&lt;SPAN&gt;[FRS_Product]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;TRUE&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; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Renewal Net House Commission]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Agency Fees.amount]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Policy Fee]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Renewal Net House Commission]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &lt;/SPAN&gt;&lt;SPAN&gt;'Master Accounts Bound'&lt;/SPAN&gt;&lt;SPAN&gt;[Agency Fees.amount]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&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;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320747#M124275</guid>
      <dc:creator>Nico_89</dc:creator>
      <dc:date>2023-07-07T15:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320809#M124277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586013" data-lia-user-login="Nico_89" class="lia-mention lia-mention-user"&gt;Nico_89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Revenue X =&lt;BR /&gt;SUMX (&lt;BR /&gt;CROSSJOIN ( 'Master Accounts Bound', VALUES ( 'Carriers'[FRS_Product] ) ),&lt;BR /&gt;IF (&lt;BR /&gt;'Carriers'[FRS_Product] = TRUE,&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount] + 'Master Accounts Bound'[Policy Fee],&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 16:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320809#M124277</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-07T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320817#M124278</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply but no, it's actually worse&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 16:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320817#M124278</guid>
      <dc:creator>Nico_89</dc:creator>
      <dc:date>2023-07-07T16:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320847#M124279</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586013" data-lia-user-login="Nico_89" class="lia-mention lia-mention-user"&gt;Nico_89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What else do tou have in the table? Or in other words what are you slicing by in the table visual?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320847#M124279</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-07T17:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320868#M124281</link>
      <description>&lt;P&gt;I am slicing by Customer, different products have different revenue calculations based on the FRS identifier, and in the case shown on the screenshot, the customer acquired 2 products, the revenue on one is calculated based on 2 columns and the other based on 3 columns. But the summary of the 2 products shows the result as if both products have False for the identifier and calculating revenue based on 2 columns for both.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Data looks sort like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Rules for the Revenue are as follows&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320868#M124281</guid>
      <dc:creator>Nico_89</dc:creator>
      <dc:date>2023-07-07T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320877#M124283</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586013" data-lia-user-login="Nico_89" class="lia-mention lia-mention-user"&gt;Nico_89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure Customer from which table but could be something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revenue X =&lt;BR /&gt;SUMX (&lt;BR /&gt;CROSSJOIN (&lt;BR /&gt;VALUES ( 'Master Accounts Bound'[Customer] ),&lt;BR /&gt;VALUES ( 'Carriers'[FRS_Product] )&lt;BR /&gt;),&lt;BR /&gt;VAR FRSProduct = 'Carriers'[FRS_Product]&lt;BR /&gt;RETURN&lt;BR /&gt;SUMX (&lt;BR /&gt;CALCULATETABLE ( 'Master Accounts Bound' ),&lt;BR /&gt;IF (&lt;BR /&gt;'Carriers'[FRS_Product] = TRUE,&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount] + 'Master Accounts Bound'[Policy Fee],&lt;BR /&gt;'Master Accounts Bound'[Renewal Net House Commission] + 'Master Accounts Bound'[Agency Fees.amount]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320877#M124283</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-07T17:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum and accurately summarize when conditions are in place</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320949#M124289</link>
      <description>&lt;P&gt;This one worked pretty well, thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will need to review the formula and see how it works as I have no clue how it works, but heck it works!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 19:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Sum-and-accurately-summarize-when-conditions-are-in-place/m-p/3320949#M124289</guid>
      <dc:creator>Nico_89</dc:creator>
      <dc:date>2023-07-07T19:37:41Z</dc:date>
    </item>
  </channel>
</rss>

