<?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 Formula for column not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3661833#M141902</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;You can try formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewColumn = 
IF(
    COUNTROWS(FILTER(YourTable, 
        YourTable[nber] = EARLIER(YourTable[nber]) &amp;amp;&amp;amp;
        (
            YourTable[4A Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[4B Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[5A Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[5B Status] &amp;lt;&amp;gt; "Complete"
        )
    )) &amp;gt; 0,
    "KEEP",
    "REMOVE"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 02:52:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-26T02:52:45Z</dc:date>
    <item>
      <title>DAX Formula for column not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3661509#M141888</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I have a problem with a DAX column.&amp;nbsp; The issue is that it is bringing in the unwanted results.&amp;nbsp; Here is an example:&amp;nbsp; If the Number which is an "AccountNumber" is the same within the group and the columns 4A, 4B, 5A and 5B say ANYTHING other than "Complete" than it should say "KEEP"&amp;nbsp; else "REMOVE.&amp;nbsp; Because the below table has "Complete" and the field "Numbers are all the same, it should say "REMOVE.&lt;/P&gt;&lt;P&gt;With my initial DAX formula, I see that it is not correct, see below examples.&amp;nbsp; Any assistance you can provide, I would greatly appreciate.&amp;nbsp; Thank you in advance!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Aother example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 22:00:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3661509#M141888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T22:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula for column not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3661833#M141902</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;You can try formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewColumn = 
IF(
    COUNTROWS(FILTER(YourTable, 
        YourTable[nber] = EARLIER(YourTable[nber]) &amp;amp;&amp;amp;
        (
            YourTable[4A Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[4B Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[5A Status] &amp;lt;&amp;gt; "Complete" ||
            YourTable[5B Status] &amp;lt;&amp;gt; "Complete"
        )
    )) &amp;gt; 0,
    "KEEP",
    "REMOVE"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 02:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3661833#M141902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T02:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula for column not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3662859#M141941</link>
      <description>&lt;P&gt;hello v-Kongfanf-msft,&lt;/P&gt;&lt;P&gt;Thank you, but that didn't work.&amp;nbsp; It yielded the following results.&amp;nbsp; It says "KEEP", but it should say "REMOVE" because within that group of Numbers which is an Account Number, they say "Complete" across the rows of 4A, 4B, 5A, and 5B.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 14:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3662859#M141941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula for column not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3669741#M142320</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;Pls provide test data and detail desire result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adamk Kong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 08:24:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3669741#M142320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-31T08:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula for column not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3673372#M142527</link>
      <description>&lt;P&gt;Hi v-kongfanf,&lt;/P&gt;&lt;P&gt;Here is some test data:&amp;nbsp; This data is coming from a report that has counted the number of "Completes per Acct#.&amp;nbsp; It seems like whatever DAX I create wants to count from the original report.&amp;nbsp; I just need to formula to affect the current table not the detail table...&lt;BR /&gt;Now, what I need is the DAX that says if any of the numbers across this table have a zero there, then "KEEP", "REMOVE".&amp;nbsp; Simple enought right.&amp;nbsp; NO, not for me...its been very hard to make this happen.&amp;nbsp; If you can assist with this I would be most grateful!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Acct&lt;/TD&gt;&lt;TD&gt;Sum of 4A Cass CT&lt;/TD&gt;&lt;TD&gt;Sum of 4B Cass CT&lt;/TD&gt;&lt;TD&gt;Sum of 5A Cass CT&lt;/TD&gt;&lt;TD&gt;Sum of 5B Cass CT&lt;/TD&gt;&lt;TD&gt;KEEP OR REMOVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;REMOVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1526&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;REMOVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6523&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;KEEP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8598&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;REMOVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9988&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;REMOVE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 01 Feb 2024 16:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-for-column-not-working/m-p/3673372#M142527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-01T16:07:24Z</dc:date>
    </item>
  </channel>
</rss>

