<?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 How to sum one column based on another column, but keep filter selection applied on table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2788578#M87490</link>
    <description>&lt;P&gt;&lt;BR /&gt;I have a table, and a set of slicers that filter the table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Currently, I am using the "customers" slicer to filter the "billing account name" column.&lt;BR /&gt;I want to display the "ecom source name" with the highest number of "total duitable shpmts" in another advanced card visualisation. To do that, I need to sum up the "total duitable shpmts" column for the same "ecom source name"s. (eg. emailship should show total of 4+2=6, and ecom should show total of 4+1=5)&lt;BR /&gt;&lt;BR /&gt;I have seen solutions using ALLEXCEPT, and I have tried using the following measure (shown in the last column of visualisation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;App Version Sorted Total Duitable Shpmts Col =

var VarId= 'CIN Data Quality'[Ecom Source Name]
return
CALCULATE(SUM([Total Dutiable Shpmts]), FILTER('CIN Data Quality','CIN Data Quality'[Ecom Source Name]=VarId))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I am getting results that are disregarding the values for "billing account name" a.k.a "customers" in the filter selection.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 05:40:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-23T05:40:18Z</dc:date>
    <item>
      <title>How to sum one column based on another column, but keep filter selection applied on table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2788578#M87490</link>
      <description>&lt;P&gt;&lt;BR /&gt;I have a table, and a set of slicers that filter the table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Currently, I am using the "customers" slicer to filter the "billing account name" column.&lt;BR /&gt;I want to display the "ecom source name" with the highest number of "total duitable shpmts" in another advanced card visualisation. To do that, I need to sum up the "total duitable shpmts" column for the same "ecom source name"s. (eg. emailship should show total of 4+2=6, and ecom should show total of 4+1=5)&lt;BR /&gt;&lt;BR /&gt;I have seen solutions using ALLEXCEPT, and I have tried using the following measure (shown in the last column of visualisation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;App Version Sorted Total Duitable Shpmts Col =

var VarId= 'CIN Data Quality'[Ecom Source Name]
return
CALCULATE(SUM([Total Dutiable Shpmts]), FILTER('CIN Data Quality','CIN Data Quality'[Ecom Source Name]=VarId))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I am getting results that are disregarding the values for "billing account name" a.k.a "customers" in the filter selection.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 05:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2788578#M87490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T05:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum one column based on another column, but keep filter selection applied on table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2789140#M87513</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;CALCULATE(SUM([Total Dutiable Shpmts]), FILTER(allselected('CIN Data Quality'),'CIN Data Quality'[Ecom Source Name]=Max('CIN Data Quality'[Ecom Source Name])))&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 08:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2789140#M87513</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-23T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum one column based on another column, but keep filter selection applied on table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2789242#M87517</link>
      <description>&lt;P&gt;You're an expert! Thank you so much! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 09:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-one-column-based-on-another-column-but-keep-filter/m-p/2789242#M87517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T09:10:31Z</dc:date>
    </item>
  </channel>
</rss>

