<?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 Error: A function 'FILTER' has been used in a True/False expression that is used as a table filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3172758#M114436</link>
    <description>&lt;P&gt;I am trying to get the upcoming milestone in a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a working measure for the last completed milestone that is quite similar, this is the code of the last completed milestone, which is working fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LastCompletedMilestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MAX('CI Milestones'[Title]),
'CI Milestones'[Id]=
MAXX(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStatus]="Completed"),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I have for the upcoming milestone, which throws me an error "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;LI-CODE lang="markup"&gt;Upcoming Milestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MIN(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStatus]&amp;lt;&amp;gt;"Completed" &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStartDate]&amp;gt;TODAY()),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot figure out why this new measure has an error. Kindly assist!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 02:04:11 GMT</pubDate>
    <dc:creator>zhona9</dc:creator>
    <dc:date>2023-04-05T02:04:11Z</dc:date>
    <item>
      <title>Error: A function 'FILTER' has been used in a True/False expression that is used as a table filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3172758#M114436</link>
      <description>&lt;P&gt;I am trying to get the upcoming milestone in a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a working measure for the last completed milestone that is quite similar, this is the code of the last completed milestone, which is working fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LastCompletedMilestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MAX('CI Milestones'[Title]),
'CI Milestones'[Id]=
MAXX(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStatus]="Completed"),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I have for the upcoming milestone, which throws me an error "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;LI-CODE lang="markup"&gt;Upcoming Milestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MIN(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStatus]&amp;lt;&amp;gt;"Completed" &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStartDate]&amp;gt;TODAY()),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot figure out why this new measure has an error. Kindly assist!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 02:04:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3172758#M114436</guid>
      <dc:creator>zhona9</dc:creator>
      <dc:date>2023-04-05T02:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error: A function 'FILTER' has been used in a True/False expression that is used as a table filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3172829#M114446</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541635" data-lia-user-login="zhona9" class="lia-mention lia-mention-user"&gt;zhona9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try first changing the second MIN to MINX in your code?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 02:53:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3172829#M114446</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-05T02:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error: A function 'FILTER' has been used in a True/False expression that is used as a table filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3175540#M114619</link>
      <description>&lt;P&gt;Thanks for the suggestion. However I encounter the same error. 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;LI-CODE lang="markup"&gt;Upcoming Milestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MINX(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStatus]&amp;lt;&amp;gt;"Completed" &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStartDate]&amp;gt;TODAY()),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:50:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3175540#M114619</guid>
      <dc:creator>zhona9</dc:creator>
      <dc:date>2023-04-06T08:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error: A function 'FILTER' has been used in a True/False expression that is used as a table filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3175545#M114622</link>
      <description>&lt;P&gt;I removed one of the conditions and now it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Upcoming Milestone = 
var currentproject = selectedvalue('CI Milestones'[ProjectID0])

RETURN
CALCULATE(MIN('CI Milestones'[Title]),
'CI Milestones'[Id]=
MINX(
    FILTER(ALL('CI Milestones'),'CI Milestones'[ProjectID0]=currentproject &amp;amp;&amp;amp; 'CI Milestones'[MilestoneStartDate]&amp;gt;TODAY()),
    'CI Milestones'[Id])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-A-function-FILTER-has-been-used-in-a-True-False-expression/m-p/3175545#M114622</guid>
      <dc:creator>zhona9</dc:creator>
      <dc:date>2023-04-06T08:51:45Z</dc:date>
    </item>
  </channel>
</rss>

