<?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: Need Formula of DAX Calculation for Quantity by Amount in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949342#M97709</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 18:57:12 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-12-05T18:57:12Z</dc:date>
    <item>
      <title>Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949314#M97702</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;&lt;U&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt; - Result Expecting in a new measure&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have Qty column in TableA and Amount column in TableB , I was creating a DAX calculation (A New Measure) in TableA where in i should be able to multiply TableA[Qty] * TableB[Amount]&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a DAX caluclation for this where in i will get the total of that calculation as "30" shown in the table and display the total '30' into a CARD visual in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution i tried:&lt;/P&gt;&lt;P&gt;TableANewMeasure = Sum('TableA'[Qty]) * Sum('TableB'[Amount])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a newbie so was trying to solve this simple issue. Thanks in Advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;TSN&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 18:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949314#M97702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949342#M97709</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 18:57:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949342#M97709</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-05T18:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949376#M97710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the relationship between the two tables?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949376#M97710</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-05T19:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949390#M97714</link>
      <description>&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;TableB::&amp;nbsp; &amp;nbsp; 1-&amp;gt;*&amp;nbsp; &amp;nbsp; &amp;nbsp; ::TableA&lt;/P&gt;&lt;P&gt;[One - Many Relationship]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks TSN,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:37:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949390#M97714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T19:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949395#M97715</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, Thanks , Would you be more specific to this problem , As i am trying to calucate quantity * Amount = Total and the sum of that list of total. I saw the post as it is calculated based on the date.&lt;/P&gt;&lt;P&gt;As i am a newbie to this DAX , It would be much appreciated if you can provide a solution specific to my question -&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TSN&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949395#M97715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T19:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949402#M97716</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Via which column?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:43:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949402#M97716</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-05T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949417#M97719</link>
      <description>&lt;P&gt;&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;: Via MatNbr column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;TSN&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:57:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949417#M97719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949424#M97720</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;NewMeasure =&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;TableA,&lt;BR /&gt;TableB[&lt;SPAN&gt;MatNbr&lt;/SPAN&gt;],&lt;BR /&gt;TableB[Amount],&lt;BR /&gt;"@Qty", SUM ( TableA[Qty] )&lt;BR /&gt;),&lt;BR /&gt;[Amount] * [@Qty]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 20:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949424#M97720</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-05T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949659#M97738</link>
      <description>&lt;P&gt;&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; This is not working. The Calculation Qty * Amount is coming as incorrect.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 22:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949659#M97738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949999#M97757</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to calculate the sum of the [&lt;SPAN&gt;Quantity&lt;/SPAN&gt;] * [Amount]. Right?&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;/P&gt;
&lt;P&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2)We can click "New measure" and enter this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;*value = var _t = ADDCOLUMNS('Table B' , "Qty" , CALCULATE(SUM('Table A'[Qty])))
return
SUMX(_t ,[Amount]*[Qty])&lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can put this on the visual and we can meet your need:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 02:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2949999#M97757</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-06T02:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need Formula of DAX Calculation for Quantity by Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2951850#M97914</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp; Thank You, This works! , Marking this as solution to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 15:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Formula-of-DAX-Calculation-for-Quantity-by-Amount/m-p/2951850#M97914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T15:13:54Z</dc:date>
    </item>
  </channel>
</rss>

