<?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 IF statement between 2 fields from different Data sources in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1616793#M32580</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create another column/calculated field - &lt;STRONG&gt;If(id_vendor="UNKN",Rerefence,id_vendor).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i guess because &lt;STRONG&gt;id_vendor&lt;/STRONG&gt; and &lt;STRONG&gt;reference&lt;/STRONG&gt; are fields from different data sources, i cant. Do you have any idea how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see bellow, how the table looks like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;</description>
    <pubDate>Fri, 22 Jan 2021 12:21:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-22T12:21:32Z</dc:date>
    <item>
      <title>IF statement between 2 fields from different Data sources</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1616793#M32580</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create another column/calculated field - &lt;STRONG&gt;If(id_vendor="UNKN",Rerefence,id_vendor).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i guess because &lt;STRONG&gt;id_vendor&lt;/STRONG&gt; and &lt;STRONG&gt;reference&lt;/STRONG&gt; are fields from different data sources, i cant. Do you have any idea how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see bellow, how the table looks like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;</description>
      <pubDate>Fri, 22 Jan 2021 12:21:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1616793#M32580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-22T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement between 2 fields from different Data sources</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1616988#M32588</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Normally you are looking for a fourmula like this :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var col = CONTAINS(Table1, Table1[id_vendor], "UNKN")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(col ,RELATED(Table2[Reference]), id_vendor)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However for this formula to work Columns 'Reference' and 'id_vendor' have to be same format(Text)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:23:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1616988#M32588</guid>
      <dc:creator>aj1973</dc:creator>
      <dc:date>2021-01-22T14:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement between 2 fields from different Data sources</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1618332#M32642</link>
      <description>&lt;P&gt;Unfortunately, it does not work. i got an error when using this REATED function. can you help please ?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 17:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-between-2-fields-from-different-Data-sources/m-p/1618332#M32642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-23T17:49:22Z</dc:date>
    </item>
  </channel>
</rss>

