<?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: Sales Total Based Upon Multiple Filters from Fields in a  table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2385743#M61789</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331116" data-lia-user-login="109264" class="lia-mention lia-mention-user"&gt;109264&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created an example based on the information you provided.&amp;nbsp;The relationship is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then please create a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sales total = 
CALCULATE (
    SUM ( SALES[Amount] ),
    FILTER (
        ALL ( 'CUSTOMER' ),
        'CUSTOMER'[Status] = "Active"
            &amp;amp;&amp;amp; MIN ( 'CUSTOMER'[Activation Date] ) &amp;lt; MIN ( 'SALES'[Transaction Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result shows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attach the PBIX file for reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;It makes it easier to give you a solution.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Sample (dummy dataset) data as text, use the table tool in the editing bar.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Expected output from sample data.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Explanation in words of how to get from 1. to 2.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team_Gao&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 09:48:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-10T09:48:51Z</dc:date>
    <item>
      <title>Sales Total Based Upon Multiple Filters from Fields in a  table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2379901#M61460</link>
      <description>&lt;P&gt;I have a sales fact table, customer and date table as seen below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get the sales total for all customers who are active and sales total must for days later than the activation date, any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 00:37:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2379901#M61460</guid>
      <dc:creator>109264</dc:creator>
      <dc:date>2022-03-08T00:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Total Based Upon Multiple Filters from Fields in a  table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2379909#M61462</link>
      <description>&lt;P&gt;Delete the relationship btwn customer and calendar&lt;/P&gt;&lt;P&gt;you are using a Surrogate key, so mark your date table using "mark as date table"&lt;/P&gt;&lt;P&gt;why would you have sales before the activation date?&lt;/P&gt;&lt;P&gt;filter the visual based on active customers&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 00:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2379909#M61462</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2022-03-08T00:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Total Based Upon Multiple Filters from Fields in a  table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2381758#M61576</link>
      <description>&lt;P&gt;Thanks Matt, we are analyzing pre program performance vs in program performance for each customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This needs to me a measure, not a filtered visual for each person's post active date sales purchase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 16:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2381758#M61576</guid>
      <dc:creator>109264</dc:creator>
      <dc:date>2022-03-08T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Total Based Upon Multiple Filters from Fields in a  table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2382206#M61604</link>
      <description>&lt;P&gt;Any filter that can be applied by a visual can be applied in a measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;measure = CALCULATE(sum(table[column]),Table[other column]="value")&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 21:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2382206#M61604</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2022-03-08T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Total Based Upon Multiple Filters from Fields in a  table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2385743#M61789</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331116" data-lia-user-login="109264" class="lia-mention lia-mention-user"&gt;109264&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created an example based on the information you provided.&amp;nbsp;The relationship is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then please create a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sales total = 
CALCULATE (
    SUM ( SALES[Amount] ),
    FILTER (
        ALL ( 'CUSTOMER' ),
        'CUSTOMER'[Status] = "Active"
            &amp;amp;&amp;amp; MIN ( 'CUSTOMER'[Activation Date] ) &amp;lt; MIN ( 'SALES'[Transaction Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result shows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attach the PBIX file for reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;It makes it easier to give you a solution.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Sample (dummy dataset) data as text, use the table tool in the editing bar.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Expected output from sample data.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;Explanation in words of how to get from 1. to 2.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team_Gao&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 09:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Total-Based-Upon-Multiple-Filters-from-Fields-in-a-table/m-p/2385743#M61789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T09:48:51Z</dc:date>
    </item>
  </channel>
</rss>

