<?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 3 months and average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3298871#M122954</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478325" data-lia-user-login="Pan_Forex" class="lia-mention lia-mention-user"&gt;Pan_Forex&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try to apply this measure to the visual's filter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = COUNTROWS(FILTER('Table',[date]&amp;gt;=EDATE(TODAY(),-3)&amp;amp;&amp;amp;[date]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 01:43:46 GMT</pubDate>
    <dc:creator>v-jianboli-msft</dc:creator>
    <dc:date>2023-06-23T01:43:46Z</dc:date>
    <item>
      <title>filter 3 months and average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3296319#M122821</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;I have a simple visualization with two columns, player and score.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Score = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_score&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;TOPN&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;[id]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'table'&lt;/SPAN&gt;&lt;SPAN&gt;[score]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_score&lt;BR /&gt;&lt;BR /&gt;I would like my table to include only players who have played a minimum of one [id] in the last 3 months counting from today.&amp;nbsp;A simple filter and setting of the last 3 months will not work in my case.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jun 2023 19:11:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3296319#M122821</guid>
      <dc:creator>Pan_Forex</dc:creator>
      <dc:date>2023-06-21T19:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: filter 3 months and average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3298871#M122954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478325" data-lia-user-login="Pan_Forex" class="lia-mention lia-mention-user"&gt;Pan_Forex&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try to apply this measure to the visual's filter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = COUNTROWS(FILTER('Table',[date]&amp;gt;=EDATE(TODAY(),-3)&amp;amp;&amp;amp;[date]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 01:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3298871#M122954</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-06-23T01:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: filter 3 months and average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3299230#M122982</link>
      <description>&lt;P&gt;Count of ID = COUNT('Table'[ID])&lt;BR /&gt;Maxdate = MAX('Table'[Date])&lt;BR /&gt;Minimum Played Player =&amp;nbsp;&lt;BR /&gt;FILTER('Table', Count of ID &amp;gt; 0 &amp;amp;&amp;amp; Maxdate &amp;gt;= TODAY() - 90 &amp;amp;&amp;amp; Maxdate &amp;lt;= TODAY())&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 06:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-3-months-and-average/m-p/3299230#M122982</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-06-23T06:49:21Z</dc:date>
    </item>
  </channel>
</rss>

