<?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 Sum column by distinct values of another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107205#M109587</link>
    <description>&lt;P&gt;Hey&lt;BR /&gt;&lt;BR /&gt;I have a table, simplified has these values&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;Email&lt;/TD&gt;&lt;TD&gt;$$$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;test1@email.com&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test2@email.com&lt;/TD&gt;&lt;TD&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test3@email.com&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;test3@email.com&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test1@email.com&lt;/TD&gt;&lt;TD&gt;850&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I want to create a measure to sum all the $$ amounts that are a reference to another tables column. In a table that would look like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;$$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;$6000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;$3850&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I was trying to use =SUMX(DISTINCT(campaign[email]),campaign[othertable.$$]))&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But it won't let me use the other tables column in the measure, I've made this column using advanced editor and extracting that information from relationship fields.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong here?&lt;BR /&gt;&lt;BR /&gt;Sorry for the terrible formatting of tables it's the first one I've done and I kept getting HTML errors&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 06:48:49 GMT</pubDate>
    <dc:creator>JayReidy</dc:creator>
    <dc:date>2023-03-02T06:48:49Z</dc:date>
    <item>
      <title>Sum column by distinct values of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107205#M109587</link>
      <description>&lt;P&gt;Hey&lt;BR /&gt;&lt;BR /&gt;I have a table, simplified has these values&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;Email&lt;/TD&gt;&lt;TD&gt;$$$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;test1@email.com&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test2@email.com&lt;/TD&gt;&lt;TD&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test3@email.com&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;test3@email.com&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;test1@email.com&lt;/TD&gt;&lt;TD&gt;850&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I want to create a measure to sum all the $$ amounts that are a reference to another tables column. In a table that would look like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;$$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign1&lt;/TD&gt;&lt;TD&gt;$6000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Campaign2&lt;/TD&gt;&lt;TD&gt;$3850&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I was trying to use =SUMX(DISTINCT(campaign[email]),campaign[othertable.$$]))&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But it won't let me use the other tables column in the measure, I've made this column using advanced editor and extracting that information from relationship fields.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong here?&lt;BR /&gt;&lt;BR /&gt;Sorry for the terrible formatting of tables it's the first one I've done and I kept getting HTML errors&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:48:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107205#M109587</guid>
      <dc:creator>JayReidy</dc:creator>
      <dc:date>2023-03-02T06:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum column by distinct values of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107215#M109590</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523060" data-lia-user-login="JayReidy" class="lia-mention lia-mention-user"&gt;JayReidy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=SUMX(DISTINCT(campaign[email]),RELATED(campaign[othertable.$$])))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107215#M109590</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-02T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum column by distinct values of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107522#M109631</link>
      <description>&lt;P&gt;No doesn't work sorry forgot to mention this is an indirect relationship&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3107522#M109631</guid>
      <dc:creator>JayReidy</dc:creator>
      <dc:date>2023-03-02T10:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum column by distinct values of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3109461#M109755</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523060" data-lia-user-login="JayReidy" class="lia-mention lia-mention-user"&gt;JayReidy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    DISTINCT ( campaign[email] ),
    SUMX (
        FILTER ( othertable, othertable[email] = campaign[email] ),
        othertable[Value.$$]
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Mar 2023 05:15:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3109461#M109755</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-03T05:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum column by distinct values of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3111388#M109923</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523060" data-lia-user-login="JayReidy" class="lia-mention lia-mention-user"&gt;JayReidy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you have already get the campaign[othertable.$$] column with Power Query Editor,&amp;nbsp;you can just try:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;measure = SUMX(campaign),campaign[othertable.$$]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 05:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-column-by-distinct-values-of-another-column/m-p/3111388#M109923</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-04T05:42:25Z</dc:date>
    </item>
  </channel>
</rss>

