<?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: Error: Comparison operations don't support comparing values type Text with Values of Type Number in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/4040416#M35957</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i m trying to extract first X digits out of my ID column of data as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Match-ID =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;but this resulted in error as "DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values."&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;basically the field "NTN-FBR" is having digits plus "-" dash in few cases that is why i've kept data type of this field as "TEXT"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;kindly guide ASAP.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 13 Jul 2024 08:06:24 GMT</pubDate>
    <dc:creator>AteeqSundhu</dc:creator>
    <dc:date>2024-07-13T08:06:24Z</dc:date>
    <item>
      <title>Error: Comparison operations don't support comparing values type Text with Values of Type Number</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/1919761#M19865</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to DAX and need some help, I'm creating a measure in a tabular cube in SSAS. I need to retreive the LastYearLastWeek data from x column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LastYearLastWeek:= CALCULATE([x], FILTER(ALL(Time), Time[WeekNumber] = SELECTEDVALUE(Time[WeekNumber]) -1 &amp;amp;&amp;amp; Time[Year] = SELECTEDVALUE(Time[Year])-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get this error in the syntax: comparison operations don't support comparing values type Text with Values of Type Number. Considering using VALUE or FORMAT functions to convert one of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fields used: WeekNumber and Year from Time table are whole numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't really make sense to me, any tips on how to fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also maybe there is a better way to get LastWeekLastYear, do you know of any?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 10:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/1919761#M19865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Comparison operations don't support comparing values type Text with Values of Type Number</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/1924996#M19893</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;Since the error&amp;nbsp;pointed out that it was a data type issue, could you double check the data type of&amp;nbsp;&lt;SPAN&gt;Time[WeekNumber] and&amp;nbsp;Time[Year] columns?&amp;nbsp;&lt;/SPAN&gt;Or, if the expression works with "VALUE" function, the data type of the two columns is indeed text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LastYearLastWeek :=&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[x],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( Time ),&lt;BR /&gt;Time[WeekNumber]&lt;BR /&gt;=&lt;FONT color="#FF0000"&gt; VALUE&lt;/FONT&gt; ( SELECTEDVALUE ( Time[WeekNumber] ) ) - 1&lt;BR /&gt;&amp;amp;&amp;amp; Time[Year]&lt;BR /&gt;= &lt;FONT color="#FF0000"&gt;VALUE&lt;/FONT&gt; ( SELECTEDVALUE ( Time[Year] ) ) - 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, is [x] a column or a measure? If it is a column, it may need to use SUM, MAX, etc, functions with [x].&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 07:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/1924996#M19893</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-06-28T07:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Comparison operations don't support comparing values type Text with Values of Type Number</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/4040416#M35957</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i m trying to extract first X digits out of my ID column of data as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Match-ID =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;LEFT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ATL-270524'&lt;/SPAN&gt;&lt;SPAN&gt;[NTN-FBR]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;but this resulted in error as "DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values."&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;basically the field "NTN-FBR" is having digits plus "-" dash in few cases that is why i've kept data type of this field as "TEXT"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;kindly guide ASAP.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Jul 2024 08:06:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-Comparison-operations-don-t-support-comparing-values-type/m-p/4040416#M35957</guid>
      <dc:creator>AteeqSundhu</dc:creator>
      <dc:date>2024-07-13T08:06:24Z</dc:date>
    </item>
  </channel>
</rss>

