<?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: Summing expenses for only 2 items in a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974760#M43447</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cost of 2 items = CALCULATE(sum('Cost of Sales'[Cost of Sales Expense]), filter('Cost of Sales', 'Cost of Sales'[Cost of Sales] in {"Training - Resources &amp;amp; Printing","Training - Venue Hire"}))&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 05:46:59 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-07-23T05:46:59Z</dc:date>
    <item>
      <title>Summing expenses for only 2 items in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974699#M43442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am only new to Power BI and I need the sum of only 2 items in my table. E.g., I have a list of the following items with the expense next to them. All items are in the table for each month.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cost of Sales&amp;nbsp; &amp;nbsp; &amp;nbsp; Cost of Sales expense&lt;/P&gt;&lt;P&gt;Training hire&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80000&lt;/P&gt;&lt;P&gt;Resources&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20000&lt;/P&gt;&lt;P&gt;Wages&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 90000&lt;/P&gt;&lt;P&gt;venue hire&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to calculate the sum of all Training hire and resources. I need to do a filter on my cost of sales column and the expenses together. I know it is easy but&amp;nbsp;I am having difficulties getting in correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cost of 2 items = CALCULATE(sum('Cost of Sales'[Cost of Sales Expense]),('Cost of Sales'[Cost of Sales]="Training - Resources &amp;amp; Printing"),('Cost of Sales'[Cost of Sales]="Training - Venue Hire"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it isn't bringing anything up. It works when I just use the one filter so I am guessing I am adding the second filter incorrectly but I am not sure how to add it this dax.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any assistance would be appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Jul 2021 05:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974699#M43442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-23T05:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Summing expenses for only 2 items in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974760#M43447</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cost of 2 items = CALCULATE(sum('Cost of Sales'[Cost of Sales Expense]), filter('Cost of Sales', 'Cost of Sales'[Cost of Sales] in {"Training - Resources &amp;amp; Printing","Training - Venue Hire"}))&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 05:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974760#M43447</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-07-23T05:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Summing expenses for only 2 items in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974769#M43449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Use the below DAX:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cost of 2 items = CALCULATE(SUM('Cost of Sales'[Cost of Sales Expense]), FILTER('Cost of Sales','Cost of Sales'[Cost of Sales]="Training - Resources &amp;amp; Printing" || 'Cost of Sales'[Cost of Sales]="Training - Venue Hire"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps!&lt;BR /&gt;&lt;EM&gt;Mark it as a solution if it answers your question. Kudos are always appreciated!&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Thanks.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 05:48:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974769#M43449</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-07-23T05:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summing expenses for only 2 items in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974788#M43452</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN class=""&gt;Tanushree_Kapse.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Fantastic. Thank you again for your prompt response. It is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 05:54:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974788#M43452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-23T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summing expenses for only 2 items in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974791#M43453</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;. Appreciate your prompt reply. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 05:55:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-expenses-for-only-2-items-in-a-column/m-p/1974791#M43453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-23T05:55:35Z</dc:date>
    </item>
  </channel>
</rss>

