<?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 based on a existing measure. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3089889#M108202</link>
    <description>&lt;P&gt;You can't use a measure as a filter in calculate, try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Out of warranty =
COUNTROWS ( FILTER ( 'Configuration Item Count', [Warranty in Years] &amp;gt; 5 ) )
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 21 Feb 2023 09:27:07 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-02-21T09:27:07Z</dc:date>
    <item>
      <title>Filter based on a existing measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3089659#M108174</link>
      <description>&lt;P&gt;I have a measure that is created to calculate the number of years from the time an asset is purchased.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Warranty in Years = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Configuration Item'&lt;/SPAN&gt;&lt;SPAN&gt;[PAR/PO/EP Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;))/&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;This is giving me the desired results.&amp;nbsp;&lt;BR /&gt;However, when i try to use the measure in a filter to calculate assets greater than 5 years old it gives an error:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dax to calculate out of warranty&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Out of warranty = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Configuration Item Count]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Warranty in Years]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;Please can someone help ?&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 07:30:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3089659#M108174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-21T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a existing measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3089889#M108202</link>
      <description>&lt;P&gt;You can't use a measure as a filter in calculate, try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Out of warranty =
COUNTROWS ( FILTER ( 'Configuration Item Count', [Warranty in Years] &amp;gt; 5 ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Feb 2023 09:27:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3089889#M108202</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-21T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a existing measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3090056#M108212</link>
      <description>&lt;P&gt;Thanks So much, John&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 10:28:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-based-on-a-existing-measure/m-p/3090056#M108212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-21T10:28:57Z</dc:date>
    </item>
  </channel>
</rss>

