<?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: Formula works except for 1 record in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720329#M144858</link>
    <description>&lt;P&gt;The FILTER is returning a table with both of the M124452 rows and then you're taking the maximum over the two. Because you are taking the MAX of a text column, it's using alphabetical ordering and chooses CBE Programs since C comes after (is "greater than") A. Note that for M116572, Q &amp;gt; C, so you get "Quest".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are &lt;A href="https://stackoverflow.com/questions/52525377/return-top-value-ordered-by-another-column" target="_self"&gt;lots of ways&lt;/A&gt;&amp;nbsp;to approach this if you want to take the max by date rather than max alphabetically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 16:33:37 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2024-02-23T16:33:37Z</dc:date>
    <item>
      <title>Formula works except for 1 record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720136#M144848</link>
      <description>&lt;P&gt;Hi, i need help figuring this out. screenshot 1&amp;nbsp;is my excel source file and my main concern was for M124452. when i apply my formula (screenshot 2) everything works out including for M116572, but for some reason, M124452 keeps returning the previous department under "CBE Programs" instead of "Amex US" (screenshot 3). M116572's previous department is returning correct under "quest". for all records, only M124452 shows the incorrect previous department, and im out of ideas right now on how to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screenshot1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screenshot2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screenshot3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 14:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720136#M144848</guid>
      <dc:creator>AkameNoGamma</dc:creator>
      <dc:date>2024-02-23T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formula works except for 1 record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720329#M144858</link>
      <description>&lt;P&gt;The FILTER is returning a table with both of the M124452 rows and then you're taking the maximum over the two. Because you are taking the MAX of a text column, it's using alphabetical ordering and chooses CBE Programs since C comes after (is "greater than") A. Note that for M116572, Q &amp;gt; C, so you get "Quest".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are &lt;A href="https://stackoverflow.com/questions/52525377/return-top-value-ordered-by-another-column" target="_self"&gt;lots of ways&lt;/A&gt;&amp;nbsp;to approach this if you want to take the max by date rather than max alphabetically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720329#M144858</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-02-23T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Formula works except for 1 record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720361#M144861</link>
      <description>&lt;P&gt;I never knew it was it's purposes &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; all of my codings came from ChatGPT as this is my first time doing PowerBI. I already got the gist of it and made a couple of formulas using Max, maybe because i was using it on numbers before. This is the first time i used it for Text. thanks for figuring this out &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;additionally, i need the count of department so that is why i opted on this formula because it works. i might just need to tweak my questions to chatGPT to get the formula that i need.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720361#M144861</guid>
      <dc:creator>AkameNoGamma</dc:creator>
      <dc:date>2024-02-23T16:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formula works except for 1 record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720566#M144867</link>
      <description>&lt;P&gt;ChatGPT isn't as good at DAX as other languages largely because DAX is so context-sensitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Julius has some suggestions for improving things here:&lt;BR /&gt;&lt;A href="https://www.linkedin.com/posts/brianjuliusdc_improve-chatgpts-dax-coding-abilities-with-activity-7107220206761959424-0NyQ/" target="_blank"&gt;https://www.linkedin.com/posts/brianjuliusdc_improve-chatgpts-dax-coding-abilities-with-activity-7107220206761959424-0NyQ/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 18:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-works-except-for-1-record/m-p/3720566#M144867</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-02-23T18:55:16Z</dc:date>
    </item>
  </channel>
</rss>

