<?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: Filter within a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168524#M17967</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239674" data-lia-user-login="Xaarie" class="lia-mention lia-mention-user"&gt;Xaarie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try DATESINPERIOD&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 10:29:03 GMT</pubDate>
    <dc:creator>Mariusz</dc:creator>
    <dc:date>2020-06-18T10:29:03Z</dc:date>
    <item>
      <title>Filter within a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168496#M17965</link>
      <description>&lt;P&gt;I am trying to filter a denominator in a measure for the last 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure so far is Divide([WIP + debtors], [YTD fees}).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the YTD fees to be a rolling YTD. I have got the amount i require in another measure by applying a filter on a column of&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Days from today = DATEDIFF(vwBillTotals[Date],TODAY(),DAY) where less than 365 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;on this measure&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD fees = sum(vwBillTotals[BilledExVat])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I don't know how to put this filter in the measure expression so that the orginal measure doesnt include all the data as the denominator and not just the last 365 days which is what i want.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sorry if this is an easy question I am very new to this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168496#M17965</guid>
      <dc:creator>Xaarie</dc:creator>
      <dc:date>2020-06-18T10:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter within a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168524#M17967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239674" data-lia-user-login="Xaarie" class="lia-mention lia-mention-user"&gt;Xaarie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try DATESINPERIOD&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:29:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168524#M17967</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-06-18T10:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter within a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168602#M17969</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I have tried that in both direct query and import mode and it gives a 0 value. formula is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE([WIP + debtors], (CALCULATE(SUM(vwBillTotals[BilledExVat]),DATESINPERIOD(vwBillTotals[Date],TODAY(),-365,day))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1168602#M17969</guid>
      <dc:creator>Xaarie</dc:creator>
      <dc:date>2020-06-18T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter within a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1171517#M18047</link>
      <description>&lt;P&gt;Sorted thanks for the info&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-within-a-measure/m-p/1171517#M18047</guid>
      <dc:creator>Xaarie</dc:creator>
      <dc:date>2020-06-19T15:07:09Z</dc:date>
    </item>
  </channel>
</rss>

