<?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 Calculation sumX multiplication in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554742#M72452</link>
    <description>&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;i'm performing my calculation with the sumX function, in a simplified way, my code has the following form:&lt;/P&gt;&lt;P&gt;measure=sumx(A)*sumx(B)*sumx(C)&lt;/P&gt;&lt;P&gt;i'm getting the results as ( A1 + A2 + A3 ...)*(B1 + B2 + B3 ...)*(C1 + C2 + C3 ...)&lt;/P&gt;&lt;P&gt;What should i do in order to have my calculation performed in the following form:&amp;nbsp;&lt;BR /&gt;(A1*B1*C1) + (A2*B2*C2) + (A3*B3*C3) + ... ?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 08:26:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-02T08:26:39Z</dc:date>
    <item>
      <title>Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554742#M72452</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;i'm performing my calculation with the sumX function, in a simplified way, my code has the following form:&lt;/P&gt;&lt;P&gt;measure=sumx(A)*sumx(B)*sumx(C)&lt;/P&gt;&lt;P&gt;i'm getting the results as ( A1 + A2 + A3 ...)*(B1 + B2 + B3 ...)*(C1 + C2 + C3 ...)&lt;/P&gt;&lt;P&gt;What should i do in order to have my calculation performed in the following form:&amp;nbsp;&lt;BR /&gt;(A1*B1*C1) + (A2*B2*C2) + (A3*B3*C3) + ... ?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554742#M72452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T08:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554796#M72461</link>
      <description>&lt;LI-CODE lang="markup"&gt;Follow this pattern = SUMX( Table, Table[ColA] * Table[ColB] * Table[ColC] )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:47:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554796#M72461</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2022-06-02T08:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554804#M72465</link>
      <description>&lt;P&gt;but the values of A, B and C are from different tables.&lt;BR /&gt;(i'm using a hierarchy slicer in order to choose which value corresponds to which one)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:53:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554804#M72465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T08:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554869#M72475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;are they in the same table or different tables?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554869#M72475</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554877#M72476</link>
      <description>&lt;P&gt;different tables&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554877#M72476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T09:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554900#M72479</link>
      <description>&lt;P&gt;actually 2 of the values are in the same table; and if i use this&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;this pattern = SUMX( Table, Table[ColA] * Table[ColB])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the 2 values in the same table i get the right value (A1*B1)+(A2*B2)...&lt;BR /&gt;but it's not working when i try to add the 3rd Value (C) which is in another table&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554900#M72479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554904#M72480</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Do they have 1:1 relationships? I mean how do you know which row to multply with which row? As you mentioned&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;(A1*B1*C1) + (A2*B2*C2) + (A3*B3*C3) + ...&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;or do you mean&amp;nbsp;(A1*B1*C1) + (A1*B1*C2) + (A1*B1*C3) + ... ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:32:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554904#M72480</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554919#M72482</link>
      <description>&lt;P&gt;i'm using a many to many relationship (power bi is not accepting to put it as 1:1); and using a hierarchy slicer, i'm chosing which value C corresponds to the 1st values (A1 &amp;amp; B1) ...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554919#M72482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554929#M72484</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Still not 100% clear but you may try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
SUMX ( Table1, SUMX ( Table2, Table1[A] * Table1[B] * Table2[C] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554929#M72484</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554948#M72486</link>
      <description>&lt;P&gt;no still doesn't work, this formula gives me:&lt;BR /&gt;(C1+C2)*A1*B1 + (C1+C2)*A2*B2 (if i'm working with 2 values)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554948#M72486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554963#M72488</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Ok. Then please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
SUMX ( Table1, Table1[A] * Table1[B] * SUM ( Table2[C] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:53:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554963#M72488</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554971#M72489</link>
      <description>&lt;P&gt;it gives the same value as the previous one&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554971#M72489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554977#M72490</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
SUMX ( Table1, Table1[A] * Table1[B] * CALCULATE ( SUM ( Table2[C] ) ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:58:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554977#M72490</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554982#M72491</link>
      <description>&lt;P&gt;same value as the previous one too&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:00:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554982#M72491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T10:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554987#M72492</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes because there are two values related to each row. I need to have a look at the data structure. Can we connect via zoom or teams? Please share a link in a private message&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2554987#M72492</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2565950#M73113</link>
      <description>&lt;P&gt;Hello Again,&lt;BR /&gt;&lt;BR /&gt;Sorry i didn't get back to you but the file is confidential. i prepared the tables below to better show the problem.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But as seen in the photo above, i'm getting good results for each row alone. but for the total (Sum of the rows) the calculation is being perfomed in another way ( it's not simply making the sum of the calculation rows but it's it's making the sum of each column and then multiplying the results if using the measure sumx(A)*SumX(B)*sumx(C))&lt;BR /&gt;or&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if using the measure sumx(A)*sumx(B*C), it's giving a correct result for each row alone too but for the total it's giving a value of the sum of all the values of column A multiplied by the sum of the multiplication of each row in column B and C&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: column A is in a different table than columns B and C&lt;BR /&gt;i would really appreciate your help in solving this issue&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2565950#M73113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-08T08:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2566053#M73123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;&lt;P&gt;SUMX (&amp;nbsp;&lt;BR /&gt;VALUES ( Nom ),&lt;BR /&gt;CALCULATE (&amp;nbsp;&lt;SPAN&gt;SUMX ( A ) * SUMX ( B * C ) )&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2566053#M73123</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-08T08:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2566082#M73125</link>
      <description>&lt;P&gt;it gives the same value as this one&amp;nbsp;&lt;SPAN&gt;sumx(A)*sumx(B*C)&lt;BR /&gt;To explain more on the relationships i have:&lt;BR /&gt;i have 2 tables (one as database (containes the type, properties, B, C) and the other as entered data (containes Type, Nom, A))&lt;BR /&gt;the relationship is between Type and Type in both tables, and it's a double relationship relating many-to-many.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;SPAN&gt;So on power Bi I will choose to associate BB to Yellow and GB2 to blue (as an example, or i can associate to any other properties(color)) and the calculation should perform the multiplication of the values of BB in column A with the corresponding values of Yellow in columns B and C&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 09:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2566082#M73125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-08T09:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2567958#M73227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Here is a sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/obELBigMGJIPqhHd" target="_blank"&gt;https://www.dropbox.com/t/obELBigMGJIPqhHd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Actually I have tried the same solutions and they seem to work. The thing is it won't allow me to create the hierarchy slicer with&amp;nbsp;pop-up a message&amp;nbsp;saying that the relationship should be One - Many. I don't know how did you create it but arbitrarily shaped slicers usually causes&amp;nbsp;trouble. Using them would require the use of KEEPFILTERS. Unfortunately&amp;nbsp;I failed to simulated&amp;nbsp;your case but you can refer to&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=bGVLguWf4Ls&amp;amp;t=69s" target="_blank"&gt;(2) When to use KEEPFILTERS over iterators - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following two workable solutions but using normal slicers.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 04:25:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2567958#M73227</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-09T04:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation sumX multiplication</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2568448#M73256</link>
      <description>&lt;P&gt;Hello, Thank you tamer for your help i really appreciate it!&lt;BR /&gt;it worked with the KEEPFILTERS function!!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 08:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-sumX-multiplication/m-p/2568448#M73256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-09T08:23:57Z</dc:date>
    </item>
  </channel>
</rss>

