<?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: Help writing a Measure that calculates MTD AND filter by another field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2845176#M91032</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 16 Oct 2022 22:25:55 GMT</pubDate>
    <dc:creator>Midway</dc:creator>
    <dc:date>2022-10-16T22:25:55Z</dc:date>
    <item>
      <title>Help writing a Measure that calculates MTD AND filter by another field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2843765#M90919</link>
      <description>&lt;P&gt;I have a measure that I need to build that needs to do the following;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate the MTD of Sales and then filter it down by another field Sales status = "Active"&lt;/P&gt;&lt;P&gt;I think the CALCAULATE function can be use here like this;&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(Sales[SalesAmount]), DATESMTD(DimDate[Date])) AND then here I need to filter by another field, SaleStatus.&lt;/P&gt;&lt;P&gt;SalesStatus has two values "Active" and "Cancelled", I need to retrieve rows with SalesStatus = "Active".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for you help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 15:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2843765#M90919</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2022-10-15T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a Measure that calculates MTD AND filter by another field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2843785#M90920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144388" data-lia-user-login="Midway" class="lia-mention lia-mention-user"&gt;Midway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
CALCULATE (
    SUM ( Sales[SalesAmount] ),
    DATESMTD ( DimDate[Date] ),
    Sales[SaleStatus] = "Active"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 15 Oct 2022 16:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2843785#M90920</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-15T16:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a Measure that calculates MTD AND filter by another field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2845176#M91032</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 22:25:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-writing-a-Measure-that-calculates-MTD-AND-filter-by-another/m-p/2845176#M91032</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2022-10-16T22:25:55Z</dc:date>
    </item>
  </channel>
</rss>

