<?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 Compare data by columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-data-by-columns/m-p/1058364#M14638</link>
    <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I have merged two tables Salesboost where I am comparing GUID from both the tables.that is achieved from below DAX query.&lt;BR /&gt;Now I need to compare GUID along with country from two tables from the second query but getting error like "Multiple columns cannot be converted to a scalar value." any help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Q1:&lt;/P&gt;&lt;P&gt;SalesBoost1&amp;amp;2 = IF(SalesBoost[Account: GUID]=SalesBoost[SalesBoost2.Customer GUID],"1&amp;amp;2",&lt;BR /&gt;IF(ISBLANK(SalesBoost[Account: GUID]),"2",&lt;BR /&gt;IF(ISBLANK(SalesBoost[SalesBoost2.Customer GUID]),"1")))&lt;/P&gt;&lt;P&gt;Q2:&lt;/P&gt;&lt;P&gt;CC_GUID_1 =&amp;nbsp;&lt;BR /&gt;var SB = CONCATENATE(SalesBoost[Account: GUID],SalesBoost[Country])&lt;BR /&gt;VAR SB1 = CONCATENATE(SalesBoost[SalesBoost2.Customer GUID],SalesBoost[SalesBoost2.Country])&lt;BR /&gt;return&lt;BR /&gt;IF(SB=SB1,"1&amp;amp;2",&lt;BR /&gt;IF(ISBLANK(SB),"2","1"))&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 07:05:36 GMT</pubDate>
    <dc:creator>Varshi288</dc:creator>
    <dc:date>2020-04-30T07:05:36Z</dc:date>
    <item>
      <title>Compare data by columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-data-by-columns/m-p/1058364#M14638</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I have merged two tables Salesboost where I am comparing GUID from both the tables.that is achieved from below DAX query.&lt;BR /&gt;Now I need to compare GUID along with country from two tables from the second query but getting error like "Multiple columns cannot be converted to a scalar value." any help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Q1:&lt;/P&gt;&lt;P&gt;SalesBoost1&amp;amp;2 = IF(SalesBoost[Account: GUID]=SalesBoost[SalesBoost2.Customer GUID],"1&amp;amp;2",&lt;BR /&gt;IF(ISBLANK(SalesBoost[Account: GUID]),"2",&lt;BR /&gt;IF(ISBLANK(SalesBoost[SalesBoost2.Customer GUID]),"1")))&lt;/P&gt;&lt;P&gt;Q2:&lt;/P&gt;&lt;P&gt;CC_GUID_1 =&amp;nbsp;&lt;BR /&gt;var SB = CONCATENATE(SalesBoost[Account: GUID],SalesBoost[Country])&lt;BR /&gt;VAR SB1 = CONCATENATE(SalesBoost[SalesBoost2.Customer GUID],SalesBoost[SalesBoost2.Country])&lt;BR /&gt;return&lt;BR /&gt;IF(SB=SB1,"1&amp;amp;2",&lt;BR /&gt;IF(ISBLANK(SB),"2","1"))&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-data-by-columns/m-p/1058364#M14638</guid>
      <dc:creator>Varshi288</dc:creator>
      <dc:date>2020-04-30T07:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data by columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-data-by-columns/m-p/1060166#M14713</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="103546" data-lia-user-login="Varshi288" class="lia-mention lia-mention-user"&gt;Varshi288&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not very clear to understand unless you share sample Data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow the below article on the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlgene.com/2019/04/30/dax-error-the-expression-refers-to-multiple-columns-multiple-columns-cannot-be-converted-to-a-scalar-value/" target="_blank"&gt;https://www.sqlgene.com/2019/04/30/dax-error-the-expression-refers-to-multiple-columns-multiple-columns-cannot-be-converted-to-a-scalar-value/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, try using the SEARCH OR FIND Function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/find/" target="_blank"&gt;https://dax.guide/find/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/search/" target="_blank"&gt;https://dax.guide/search/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 23:00:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-data-by-columns/m-p/1060166#M14713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T23:00:12Z</dc:date>
    </item>
  </channel>
</rss>

