<?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: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070437#M106534</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Longer term, I need to create a report that shows this, but for 54 rows.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Inventory&lt;/TD&gt;&lt;TD&gt;1300&lt;/TD&gt;&lt;TD&gt;1399&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Some number&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prepaids&lt;/TD&gt;&lt;TD&gt;1400&lt;/TD&gt;&lt;TD&gt;1439&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other Current Assets&lt;/TD&gt;&lt;TD&gt;1440&lt;/TD&gt;&lt;TD&gt;1499&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Current Assets&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;1499&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;Note that "Total Current Assets" includes a collection of GL_codes that were already chosen ealier for other groupings. In my mind, I think I should have something like;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#993366"&gt;&lt;SPAN&gt;ReportValue (DAX) = &lt;/SPAN&gt;&lt;SPAN&gt;Switch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(GL_BALANCE_MC[Cost_Center]))) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(GL_BALANCE_MC[Cost_Center]))) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;1499&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;, &lt;/SPAN&gt;&lt;SPAN&gt;"Total Current Access"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But 54 of these in total, one for each line item aggregating the appropriate GL_Codes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR - Trade&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR - Other&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Costs in Excess of Billings&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercompany Assets&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;50 more....&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 23:09:18 GMT</pubDate>
    <dc:creator>t-irp</dc:creator>
    <dc:date>2023-02-08T23:09:18Z</dc:date>
    <item>
      <title>Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070308#M106511</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;H1&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Hello, I did a search and found a similar post but despite my efforts to solve my own issue, I am blocked and could use some guidance. I did follow the steps in that other post, which were quite clear by those who responded.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H1&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;I am creating a Financial report where I need to group "general ledger" codes that are text values but with ranges such as &amp;gt;1000 and &amp;lt;1999, 2000 to 2050, etc. I have 50+ total. I don't want to use the "group by" feature as that seems to only detect values that exist "today" in the ERP. If the Finance team wants to add some new GL codes like 2049, I am looking for a query that will detect that without them having to remember to then add more to the "group by". The goal here is to detect GL codes in ranges.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The GL_Code column is of type TEXT, coming in that way from the vendor. We cannot change this in the master system,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;but tried changing in Power BI but did not see a change in my error messages&lt;/EM&gt;. As of now, the value for GL has been changed to Whole number," My calculated column is of type "whole number."&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;My query will be massive, but step 1 is getting this working.&lt;/P&gt;&lt;P class=""&gt;ReportValue (DAX) = Switch(TRUE(), NOT(ISBLANK(&lt;STRONG&gt;VALUE&lt;/STRONG&gt;(GL_BALANCE_MC[Cost_Center]))) = 1000 , "Cash")&lt;/P&gt;&lt;P class=""&gt;also tried&lt;/P&gt;&lt;P class=""&gt;ReportValue (DAX) = Switch(TRUE(), NOT(ISBLANK(&lt;STRONG&gt;FORMAT&lt;/STRONG&gt;(GL_BALANCE_MC[Cost_Center],"Standard"))) == 1000 , "Cash")&lt;/P&gt;&lt;P class=""&gt;and&lt;/P&gt;&lt;P class=""&gt;ReportValue (DAX) = Switch(TRUE(), FORMAT(GL_BALANCE_MC[Cost_Center],"Standard") == 1000 , "Cash")&lt;/P&gt;&lt;P class=""&gt;All give me&lt;/P&gt;&lt;P class=""&gt;DAX comparison operations do not support comparing values of type True/False with values of type Integer. Consider using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VALUE or FORMAT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function to convert one of the values.&lt;/P&gt;&lt;P class=""&gt;I have also tried with a single = and a ==.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Does anyone see an obvious error or misunderstanding on my part. I hope I described the issue.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 21:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070308#M106511</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-08T21:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070372#M106521</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511197" data-lia-user-login="t-irp" class="lia-mention lia-mention-user"&gt;t-irp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what kind of data do you have for column&amp;nbsp;&lt;SPAN&gt;GL_BALANCE_MC[Cost_Center]?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:27:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070372#M106521</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T22:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070375#M106522</link>
      <description>&lt;P&gt;That data coming from the vendor DB is "text". I have selected that column in Power BI and changed to "whole number" but that is not solving my issue, so&amp;nbsp;&lt;EM&gt;I&lt;/EM&gt; am doing something else wrong it seems.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:31:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070375#M106522</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-08T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070391#M106525</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511197" data-lia-user-login="t-irp" class="lia-mention lia-mention-user"&gt;t-irp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regardless its data type, what kind of value do you have?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070391#M106525</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T22:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070395#M106526</link>
      <description>&lt;P&gt;They are numbers such as 1000, 1200, 1351, etc, but some are empty/null&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070395#M106526</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-08T22:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070408#M106529</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511197" data-lia-user-login="t-irp" class="lia-mention lia-mention-user"&gt;t-irp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure about your use case. try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ReportValue (DAX) = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Switch(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TRUE(),NOT(ISBLANK(&lt;/SPAN&gt;VALUE&lt;SPAN&gt;(GL_BALANCE_MC[Cost_Center]))) , "Cash")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or why you want to compare with 1000?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070408#M106529</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T22:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070437#M106534</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Longer term, I need to create a report that shows this, but for 54 rows.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Inventory&lt;/TD&gt;&lt;TD&gt;1300&lt;/TD&gt;&lt;TD&gt;1399&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Some number&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prepaids&lt;/TD&gt;&lt;TD&gt;1400&lt;/TD&gt;&lt;TD&gt;1439&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other Current Assets&lt;/TD&gt;&lt;TD&gt;1440&lt;/TD&gt;&lt;TD&gt;1499&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Current Assets&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;1499&lt;/TD&gt;&lt;TD&gt;Some number&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;Note that "Total Current Assets" includes a collection of GL_codes that were already chosen ealier for other groupings. In my mind, I think I should have something like;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#993366"&gt;&lt;SPAN&gt;ReportValue (DAX) = &lt;/SPAN&gt;&lt;SPAN&gt;Switch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(GL_BALANCE_MC[Cost_Center]))) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(GL_BALANCE_MC[Cost_Center]))) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;1499&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;, &lt;/SPAN&gt;&lt;SPAN&gt;"Total Current Access"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But 54 of these in total, one for each line item aggregating the appropriate GL_Codes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR - Trade&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AR - Other&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Costs in Excess of Billings&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercompany Assets&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;50 more....&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 23:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3070437#M106534</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-08T23:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3072185#M106689</link>
      <description>&lt;P class=""&gt;I made a lot more progress. It seems that the value 1000 is a string, not a number.&lt;/P&gt;&lt;P class=""&gt;This&lt;/P&gt;&lt;P class=""&gt;ReportValue (DAX) = Switch(TRUE(), FORMAT(GL_BALANCE_MC[Cost_Center],"Standard") =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;FORMAT(1000,"Standard")&lt;/FONT&gt;&lt;/STRONG&gt;, "Cash")&lt;/P&gt;&lt;P class=""&gt;gets me past the error. Hopefully it helps someone&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:57:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3072185#M106689</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-09T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3101509#M109049</link>
      <description>&lt;P&gt;Sorry for the late reply, = the issue was that "1000" needed to be a string for whatever reason.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 13:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Another-DAXComparison-Operations-Do-Not-Support-Comparing-Values/m-p/3101509#M109049</guid>
      <dc:creator>t-irp</dc:creator>
      <dc:date>2023-02-27T13:33:33Z</dc:date>
    </item>
  </channel>
</rss>

