<?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: error message  Dax expression in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/error-message-Dax-expression/m-p/3398687#M44088</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/459751"&gt;@22LACMT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your screenshot, I think "cur" amd "pre" part are both measures which need to return results in a table. So you need to filter in a table to use these conditions.&amp;nbsp;&lt;SPAN&gt;The syntax should be FILTER(Table, Filter Expression).&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Jeopardynewsinceprior =
VAR cur =
    IF ( ImmediateJeopardy[Measure_fpnjeo], "Y", "N" )
VAR pre =
    IF ( ImmJPastMonth1[Measure_Jeopastfpn], "Y", "N" )
RETURN
    CALCULATE (
        COUNT ( MTData[FPN] ),
        FILTER ( ALLEXCEPT ( MTData, MTData[Data] ), cur = "Y" &amp;amp;&amp;amp; pre = "N" )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 08:28:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-25T08:28:30Z</dc:date>
    <item>
      <title>error message  Dax expression</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/error-message-Dax-expression/m-p/3395251#M44043</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can someone help with why this is not working?&amp;nbsp; Goal: Cur &amp;amp; Pre are using the key indicator to create a yes or no flag&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am then using the return portion of the dax to give me the count of all the loans on the cur report and not on the prev report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="22LACMT_1-1692806468925.png" style="width: 579px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/959395iC6EEC865481ABF82/image-dimensions/579x89?v=v2" width="579" height="89" role="button" title="22LACMT_1-1692806468925.png" alt="22LACMT_1-1692806468925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/error-message-Dax-expression/m-p/3395251#M44043</guid>
      <dc:creator>22LACMT</dc:creator>
      <dc:date>2023-08-23T16:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: error message  Dax expression</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/error-message-Dax-expression/m-p/3398687#M44088</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/459751"&gt;@22LACMT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your screenshot, I think "cur" amd "pre" part are both measures which need to return results in a table. So you need to filter in a table to use these conditions.&amp;nbsp;&lt;SPAN&gt;The syntax should be FILTER(Table, Filter Expression).&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Jeopardynewsinceprior =
VAR cur =
    IF ( ImmediateJeopardy[Measure_fpnjeo], "Y", "N" )
VAR pre =
    IF ( ImmJPastMonth1[Measure_Jeopastfpn], "Y", "N" )
RETURN
    CALCULATE (
        COUNT ( MTData[FPN] ),
        FILTER ( ALLEXCEPT ( MTData, MTData[Data] ), cur = "Y" &amp;amp;&amp;amp; pre = "N" )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:28:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/error-message-Dax-expression/m-p/3398687#M44088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-25T08:28:30Z</dc:date>
    </item>
  </channel>
</rss>

