<?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: DAX Filter returns invalid results in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Filter-returns-invalid-results/m-p/3250629#M42801</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample file to have a test.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="veqinmsft_0-1684918705775.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919244i84C0A8F05DE21265/image-size/medium?v=v2&amp;amp;px=400" role="button" title="veqinmsft_0-1684918705775.png" alt="veqinmsft_0-1684918705775.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Your code works well on myside.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="veqinmsft_1-1684918823545.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919248i8BD19D70C8617BDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="veqinmsft_1-1684918823545.png" alt="veqinmsft_1-1684918823545.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I have some questions. I am confused that whether [RUN_DATE] and [PR_SPL_SALES_DATE] are text data format.&lt;/P&gt;
&lt;P&gt;I think your calculation is based on your data model, please share a sample file with me and show me a sceenshot with the result you want. This will make it easier for me to find the solution.&lt;/P&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;</description>
    <pubDate>Wed, 24 May 2023 09:03:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-24T09:03:23Z</dc:date>
    <item>
      <title>DAX Filter returns invalid results</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Filter-returns-invalid-results/m-p/3248582#M42783</link>
      <description>&lt;P&gt;I have the measures. In the&amp;nbsp;PR_SPL_DATE_CHANGED measure, the filter is returning null records of&amp;nbsp;LEFT(Products[RUN_DATE],4) along with the matching records. I expect this should return only for&amp;nbsp;(Products[RUN_DATE],4) = LEFT([MIN_RUN_DATE],4) condition whereas the null records also being filtered out from this. I dont know what is the reason behind this.&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;&lt;LI-CODE lang="markup"&gt;MIN_RUN_DATE = CALCULATE(MIN(Products[RUN_DATE]), LEFT(Products[RUN_DATE],4) = FORMAT(YEAR(TODAY()),BLANK()))
 
PR_SPL_DATE_CHANGED = IF((CALCULATE(COUNTROWS(VALUES(Products[PR_SPL_SALES_DATE])),
FILTER(Products, LEFT(Products[RUN_DATE],4) = LEFT([MIN_RUN_DATE],4)))) = 1,0,1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 21:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Filter-returns-invalid-results/m-p/3248582#M42783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-22T21:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Filter returns invalid results</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Filter-returns-invalid-results/m-p/3250629#M42801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample file to have a test.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="veqinmsft_0-1684918705775.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919244i84C0A8F05DE21265/image-size/medium?v=v2&amp;amp;px=400" role="button" title="veqinmsft_0-1684918705775.png" alt="veqinmsft_0-1684918705775.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Your code works well on myside.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="veqinmsft_1-1684918823545.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919248i8BD19D70C8617BDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="veqinmsft_1-1684918823545.png" alt="veqinmsft_1-1684918823545.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I have some questions. I am confused that whether [RUN_DATE] and [PR_SPL_SALES_DATE] are text data format.&lt;/P&gt;
&lt;P&gt;I think your calculation is based on your data model, please share a sample file with me and show me a sceenshot with the result you want. This will make it easier for me to find the solution.&lt;/P&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;</description>
      <pubDate>Wed, 24 May 2023 09:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Filter-returns-invalid-results/m-p/3250629#M42801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T09:03:23Z</dc:date>
    </item>
  </channel>
</rss>

