<?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: Create a measure - Date filtering in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/903259#M8331</link>
    <description>&lt;P&gt;hi thanks, i tried this but got an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 09:54:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-17T09:54:37Z</dc:date>
    <item>
      <title>Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902032#M8269</link>
      <description>&lt;P&gt;Hi i am trying to cretae a measure to calculate for example, revenue which is filtered by 2 date ranges, for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NEW Revenue = (Table1[Revenue]), Filtered by Date[Year]&amp;lt;2019 where the revenue is equal to or less than £0 AND Filter by Date[Year]&amp;gt;2020 where the revenue &amp;gt;£0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a simple way to write this in Dax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 10:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902032#M8269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-16T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902102#M8271</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on your query , but can you please explain me more in detail what you are trying to achive ?&lt;/P&gt;&lt;P&gt;I will try to help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Piyush&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 11:59:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902102#M8271</guid>
      <dc:creator>PiyushH1</dc:creator>
      <dc:date>2020-01-16T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902106#M8272</link>
      <description>&lt;P&gt;thnak you, i am trying to work out who are net new customers, i.e those that have not bought certain products before in a set time frame and those who have bought customers this year for example so that we can count the number of them for analysis purposes.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902106#M8272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-16T12:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902227#M8278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your logic you have mentioned year&amp;lt;2019 AND Year&amp;gt;2020.&lt;/P&gt;&lt;P&gt;Please check the above logic this will never evaluate to true for AND condition. May be requirement is OR COndtion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure=calculate( Sum(table[revenue]),filter(table, (table[year]&amp;lt;2019 &amp;amp;&amp;amp; table[revenue]&amp;lt;0) ||&amp;nbsp;(table[year]&amp;gt;2020 &amp;amp;&amp;amp; table[revenue]&amp;gt;0) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pravin Wattamwar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it resolves your problem&amp;nbsp; mark it as solution and give kudos.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 14:06:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902227#M8278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-16T14:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902328#M8287</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/55451" target="_blank"&gt;@ballist1x&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;there is a option&amp;nbsp; quick new&amp;nbsp; measue under filter "sales from new customer". please try this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if it resolves your problem&amp;nbsp; mark it as solution and give kudos.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Piyush&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 15:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/902328#M8287</guid>
      <dc:creator>PiyushH1</dc:creator>
      <dc:date>2020-01-16T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure - Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/903259#M8331</link>
      <description>&lt;P&gt;hi thanks, i tried this but got an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 09:54:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-Date-filtering/m-p/903259#M8331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-17T09:54:37Z</dc:date>
    </item>
  </channel>
</rss>

