<?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 cells which are also present in mapping table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1537665#M30234</link>
    <description>&lt;P&gt;When I use either one of the two first options, PowerBI tells me it is unable to find Table2.&amp;nbsp; This is strange as there exists a join between Table2 and Table1.&amp;nbsp; I am unable to make any changes in the model view due to permissions.&amp;nbsp; Do you know what could be the cause for the measure not working?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 02:50:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-08T02:50:27Z</dc:date>
    <item>
      <title>How to sum cells which are also present in mapping table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1536325#M30181</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I create a measure that does the following:&lt;/P&gt;&lt;P&gt;Sum table 1[column A] for all rows where table 1[column B] is equal to a value in table 2[column C]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I am writing it as:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2 = Calculate(SUM(Table1[ColumnA]), Table1[ColumnB]=Table2[ColumnC])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But PowerBI is returning an error "The expression contains multiple columns, but only a single column can be used in a True/False expression that is used as a table filter expression."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In Excel, I would write this as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMIF(ColumnB, Table2'ColumnC', ColumnA)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Dec 2020 10:39:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1536325#M30181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-07T10:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum cells which are also present in mapping table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1536450#M30184</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if they have one to many relation &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Measure 2 = Calculate(SUM(Table1[ColumnA]), filter(Table1,Table1[ColumnB]=related(Table2[ColumnC])))&lt;BR /&gt;or&lt;BR /&gt;Measure 2 = Calculate(SUM(Table1[ColumnA]), filter(Table2,Table2[ColumnB]=related(Table1[ColumnC])))&lt;/P&gt;
&lt;P&gt;Measure 2 = Calculate(SUM(Table1[ColumnA]), filter(Table1,Table1[ColumnB]=max(Table2[ColumnC])))&lt;BR /&gt;for some row context // group by&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Measure 2 = Calculate(SUMX(value(Table1[ID]), Table1[ColumnA]), filter(Table1,Table1[ColumnB]=max(Table2[ColumnC])))&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 12:52:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1536450#M30184</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-07T12:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum cells which are also present in mapping table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1537665#M30234</link>
      <description>&lt;P&gt;When I use either one of the two first options, PowerBI tells me it is unable to find Table2.&amp;nbsp; This is strange as there exists a join between Table2 and Table1.&amp;nbsp; I am unable to make any changes in the model view due to permissions.&amp;nbsp; Do you know what could be the cause for the measure not working?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 02:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-cells-which-are-also-present-in-mapping-table/m-p/1537665#M30234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-08T02:50:27Z</dc:date>
    </item>
  </channel>
</rss>

