<?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: Help with error: DAX comparison operations in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347461#M172661</link>
    <description>&lt;P&gt;Ahhh that's it! Thank you so much!&lt;/P&gt;</description>
    <pubDate>Tue, 31 Dec 2024 20:21:31 GMT</pubDate>
    <dc:creator>data4good</dc:creator>
    <dc:date>2024-12-31T20:21:31Z</dc:date>
    <item>
      <title>Help with error: DAX comparison operations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347418#M172658</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've been searching this forum for help, but haven't managed to find a solution to my problem. I am trying to create a calculated column called HMG. HMG should&amp;nbsp;equal 1 only if both of the following conditions are met: SAMPLE =1 AND State_Clean = "WA". Otherwise, the value for HMG should equal 0. I'm using the following syntax and getting the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;HMG = if( &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; Interaction_Table[SAMPLE]=1 &amp;amp; RELATED(Client_Table[State_Clean])="WA",1,0)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would love some help adjusting my syntax to work. SAMPLE is a calculated column so I'm not sure how to tell what type it is, but I'm guessing it's numeric since the values are 1 and 0. I assume State_Clean is a string.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!!&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Dec 2024 19:05:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347418#M172658</guid>
      <dc:creator>data4good</dc:creator>
      <dc:date>2024-12-31T19:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with error: DAX comparison operations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347439#M172660</link>
      <description>&lt;P&gt;the syntax for "and"&amp;nbsp; is &amp;amp;&amp;amp;&amp;nbsp; , not &amp;amp;&amp;nbsp; &amp;nbsp;(which is a join operator)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 19:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347439#M172660</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-31T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with error: DAX comparison operations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347461#M172661</link>
      <description>&lt;P&gt;Ahhh that's it! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 20:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-error-DAX-comparison-operations/m-p/4347461#M172661</guid>
      <dc:creator>data4good</dc:creator>
      <dc:date>2024-12-31T20:21:31Z</dc:date>
    </item>
  </channel>
</rss>

