<?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 Use double filter when calculating a sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2811550#M89007</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Order ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Order Date&lt;/TD&gt;&lt;TD&gt;Order Value&lt;/TD&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;O1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;01.01.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 248,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O16&lt;/TD&gt;&lt;TD&gt;19.01.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O15&lt;/TD&gt;&lt;TD&gt;12.03.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 112,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O9&lt;/TD&gt;&lt;TD&gt;15.03.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 599,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O8&lt;/TD&gt;&lt;TD&gt;22.04.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 567,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O2&lt;/TD&gt;&lt;TD&gt;30.04.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 457,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a company specific view where the user can filter the page with the help of a customer filter. In this company specific view, I would like to create a pie chart in which I can show the share of sales to the selected customer in 2022 to the total. It should look as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX formula for C1 works fine*. However, my DAX formula for Rest does not quite work. It looks as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Gross Margin CY ALL = 
calculate(
    sum(OrderDetails[Unit Margin]),
    all(),
    filter(Orders,
        year(Orders[Order Date]) = 2022
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, while I would like to keep the date filter, I would like to extend my calculate to all customers. However, I only seem to get the same value returned Can anyone please help me in correcting my DAX formula?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;* formula looks as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Gross Margin CY= 
calculate(
    sum(OrderDetails[Unit Margin]),
    filter(Orders,
        year(Orders[Order Date]) = 2022
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Oct 2022 10:14:48 GMT</pubDate>
    <dc:creator>ThomasSan</dc:creator>
    <dc:date>2022-10-02T10:14:48Z</dc:date>
    <item>
      <title>Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2811550#M89007</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Order ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Order Date&lt;/TD&gt;&lt;TD&gt;Order Value&lt;/TD&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;O1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;01.01.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 248,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O16&lt;/TD&gt;&lt;TD&gt;19.01.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O15&lt;/TD&gt;&lt;TD&gt;12.03.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 112,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O9&lt;/TD&gt;&lt;TD&gt;15.03.2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 599,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O8&lt;/TD&gt;&lt;TD&gt;22.04.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 567,00 €&lt;/TD&gt;&lt;TD&gt;C2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O2&lt;/TD&gt;&lt;TD&gt;30.04.2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 457,00 €&lt;/TD&gt;&lt;TD&gt;C1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a company specific view where the user can filter the page with the help of a customer filter. In this company specific view, I would like to create a pie chart in which I can show the share of sales to the selected customer in 2022 to the total. It should look as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX formula for C1 works fine*. However, my DAX formula for Rest does not quite work. It looks as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Gross Margin CY ALL = 
calculate(
    sum(OrderDetails[Unit Margin]),
    all(),
    filter(Orders,
        year(Orders[Order Date]) = 2022
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, while I would like to keep the date filter, I would like to extend my calculate to all customers. However, I only seem to get the same value returned Can anyone please help me in correcting my DAX formula?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;* formula looks as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Gross Margin CY= 
calculate(
    sum(OrderDetails[Unit Margin]),
    filter(Orders,
        year(Orders[Order Date]) = 2022
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 10:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2811550#M89007</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-10-02T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2811629#M89016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Gross Margin CY Other =
CALCULATE (
    SUM ( OrderDetails[Unit Margin] ),
    ALL (),
    FILTER (
        Orders,
        YEAR ( Orders[Order Date] ) = 2022
            &amp;amp;&amp;amp; Orders[Customer] &amp;lt;&amp;gt; SELECTEDVALUE ( Orders[Customer] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 02 Oct 2022 11:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2811629#M89016</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-02T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813155#M89089</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to show the value of the selected Customer and the value of the other Customer in the pie chart. Right?&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;/P&gt;
&lt;P&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)We can create two measures :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Custom Value = SUMX( FILTER('Sheet1',YEAR('Sheet1'[Order Date])=2022 ) , 'Sheet1'[Order Value])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rest = SUMX( FILTER(ALL(Sheet1) , YEAR('Sheet1'[Order Date]) =2022 &amp;amp;&amp;amp; 'Sheet1'[Customer] &amp;lt;&amp;gt; SELECTEDVALUE('Sheet1'[Customer]) ),'Sheet1'[Order Value]) &lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can put the [Customer] in slice and the measure in the pie chart and we will meet your need :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813155#M89089</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-03T07:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813161#M89091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your reply. Unfortunately, I get a (Blank) returned which I do not quite understand. My filter is using Orders[Customer] so I do not quite know why it won't respond to SELECTEDVALUE(Orders[Customer]). Naturally, I checked the data and there are other sales by customers that are not C1 in that year. Do you maybe know where else I could check or what else might help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;BR /&gt;I realize that the problem is that in my larger data set, I have more than two customers. I was not aware that my data extract with only two customers may pose an issue here. Do you know how to transform the&amp;nbsp;SELECTEDVALUE(Orders[Customer]) bit to a list? I have already unsuccessfully tried not(Orders[Customers] in {SELECTEDVALUE(Orders[Customer])})&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813161#M89091</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-10-03T07:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813230#M89095</link>
      <description>&lt;P&gt;Thank you for your response,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Unfortunately, in my description above, I failed to mention that I have more than two customers. Do you happen to know how to successfully transform the "&amp;lt;&amp;gt; SELECTEDVALUE('Sheet1'[Customer]) " bit into a list?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813230#M89095</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-10-03T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813257#M89098</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Gross Margin CY Other =
CALCULATE (
    SUM ( OrderDetails[Unit Margin] ),
    ALL (),
    FILTER (
        Orders,
        YEAR ( Orders[Order Date] ) = 2022
            &amp;amp;&amp;amp; NOT ( Orders[Customer] IN VALUE ( Orders[Customer] ) )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:53:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813257#M89098</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-03T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813327#M89105</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, it says "The function expects a table expression for argument '2', but a string or numeric expression was used." here&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813327#M89105</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-10-03T08:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813390#M89108</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry a typo mistake. Missed the "S" in VALUE(S)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Gross Margin CY Other =
CALCULATE (
    SUM ( OrderDetails[Unit Margin] ),
    ALL (),
    FILTER (
        Orders,
        YEAR ( Orders[Order Date] ) = 2022
            &amp;amp;&amp;amp; NOT ( Orders[Customer] IN VALUES ( Orders[Customer] ) )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813390#M89108</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-03T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813400#M89109</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329838" data-lia-user-login="ThomasSan" class="lia-mention lia-mention-user"&gt;ThomasSan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can replace the [Rest] measure :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rest = 
VAR _slice = VALUES('Sheet1'[Customer])
return 
SUMX( FILTER(ALL(Sheet1) , YEAR('Sheet1'[Order Date]) =2022 &amp;amp;&amp;amp; not 'Sheet1'[Customer] in _slice ),'Sheet1'[Order Value]) &lt;/LI-CODE&gt;
&lt;P&gt;The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2813400#M89109</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-03T08:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use double filter when calculating a sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2814184#M89165</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, that was the solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 13:55:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-double-filter-when-calculating-a-sum/m-p/2814184#M89165</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2022-10-03T13:55:24Z</dc:date>
    </item>
  </channel>
</rss>

