<?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: Compare almost identical text values and expect a true/false result in a separate column. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611638#M139622</link>
    <description>&lt;P&gt;Hi Dangar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the formula.&lt;/P&gt;&lt;P&gt;Applied it and noticed some improvement on my report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still experiencing problems with the example below. Although there is so little difference, Power BI gives me false as a result when comparing these two values.&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;&lt;P&gt;Thanks for any contribution.&lt;/P&gt;&lt;P&gt;Ermal&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 18:54:39 GMT</pubDate>
    <dc:creator>Ermal</dc:creator>
    <dc:date>2024-01-02T18:54:39Z</dc:date>
    <item>
      <title>Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611491#M139612</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have been struggling for a while now. Hoping to find someone who can help.&lt;/P&gt;&lt;P&gt;I'm looking for a better formula to compare two text values of different datasets that are not identical, but similar.&lt;/P&gt;&lt;P&gt;So, as you can see below, I'm comparing data from Element A (dataset 1) with Element B (dataset 2) and hoping to get three times "True" as a value in a seperate column.&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;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula that I'm currently using is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;" &lt;/EM&gt;&lt;SPAN&gt;Column =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var sapNM = (trim(related('Dataset 1'[Element A])))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Return&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONTAINSSTRING(sapNM, (trim('Dataset 2'[ELEMENT B]))) "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When using this formula, I'm getting to many false values. I was thinking about turning the formula around but then I don't get the desired datasets anymore to choose from.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611491#M139612</guid>
      <dc:creator>Ermal</dc:creator>
      <dc:date>2024-01-02T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611590#M139620</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616547" data-lia-user-login="Ermal" class="lia-mention lia-mention-user"&gt;Ermal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if&amp;nbsp; relationship present bw different table then try below for column&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;column =
   CALCULATE(
       CONTAINSSTRING(
           MIN('e 2'[element 2]),
           MIN('e 1'[element 1])
       )
   )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611590#M139620</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-02T18:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611638#M139622</link>
      <description>&lt;P&gt;Hi Dangar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the formula.&lt;/P&gt;&lt;P&gt;Applied it and noticed some improvement on my report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still experiencing problems with the example below. Although there is so little difference, Power BI gives me false as a result when comparing these two values.&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;&lt;P&gt;Thanks for any contribution.&lt;/P&gt;&lt;P&gt;Ermal&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611638#M139622</guid>
      <dc:creator>Ermal</dc:creator>
      <dc:date>2024-01-02T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611650#M139623</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616547" data-lia-user-login="Ermal" class="lia-mention lia-mention-user"&gt;Ermal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it happens because of dot(.) In element a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For checking purpose&amp;nbsp;&lt;/P&gt;&lt;P&gt;Left(dataset [element a],len(dataset [element a])-1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use above code for checking purpose it remove dot(.) From element a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After removing dot compare it with element b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it gives true means dot (.) Create problem in above you mention&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611650#M139623</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-02T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611703#M139626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&lt;BR /&gt;IF the dot(.) is in Element B and not in Element A then I'm not experiencing any issues, see below:&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;&lt;P&gt;If it is the other way arround, then it gives me false as a result:&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;&lt;P&gt;If Element A is an empty field compared to element B then it gives me True as a result:&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;&lt;P&gt;The other way around it gives me a false value&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;&lt;P&gt;I've been struggling with this for so long.&lt;BR /&gt;Perhaps I should settle for one good formula and accept that the system will never be able to accommodate everything.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3611703#M139626</guid>
      <dc:creator>Ermal</dc:creator>
      <dc:date>2024-01-02T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare almost identical text values and expect a true/false result in a separate column.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3612676#M139667</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616547" data-lia-user-login="Ermal" class="lia-mention lia-mention-user"&gt;Ermal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;check below image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;blank value considerd as string so it give TRUE() as you face above&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to replace blank() value with string that not present in comparision string .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 09:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-almost-identical-text-values-and-expect-a-true-false/m-p/3612676#M139667</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-03T09:13:42Z</dc:date>
    </item>
  </channel>
</rss>

