<?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: IF STATEMENT NOT ACCEPTING TABLE NAME IN CUSTOM COLUMN FORMULA in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2400976#M62822</link>
    <description>&lt;P&gt;Thanks so&amp;nbsp; very much for your help! Unfortunately, PBI continues to generate the same error. Please see below:&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 14:53:34 GMT</pubDate>
    <dc:creator>pbianalyst</dc:creator>
    <dc:date>2022-03-17T14:53:34Z</dc:date>
    <item>
      <title>IF STATEMENT NOT ACCEPTING TABLE NAME IN CUSTOM COLUMN FORMULA</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2399430#M62713</link>
      <description>&lt;P&gt;Would appreciate assistance with a custom column and trying to create that references values in another column using an IF statement as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF ('MEDICAL'[DX_1] IN DISTINCT 'MH_ICD10_CODES'[MH_ICD10_CODES],"Y","N"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the formula does not recognize the table MEDICAL and underlines the letter C with a ~ in Red.&lt;/P&gt;&lt;P&gt;The table name is correct and exist in the data schema.&lt;/P&gt;&lt;P&gt;Any suggestions as to why PBI is not recognizing this table name in the custom formula will be very much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 03:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2399430#M62713</guid>
      <dc:creator>pbianalyst</dc:creator>
      <dc:date>2022-03-17T03:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF STATEMENT NOT ACCEPTING TABLE NAME IN CUSTOM COLUMN FORMULA</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2399492#M62723</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368077" data-lia-user-login="pbianalyst" class="lia-mention lia-mention-user"&gt;pbianalyst&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;IF ('MEDICAL'[DX_1] IN DISTINCT('MH_ICD10_CODES'[MH_ICD10_CODES]),"Y","N")&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 04:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2399492#M62723</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-17T04:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: IF STATEMENT NOT ACCEPTING TABLE NAME IN CUSTOM COLUMN FORMULA</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2400976#M62822</link>
      <description>&lt;P&gt;Thanks so&amp;nbsp; very much for your help! Unfortunately, PBI continues to generate the same error. Please see below:&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:53:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2400976#M62822</guid>
      <dc:creator>pbianalyst</dc:creator>
      <dc:date>2022-03-17T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: IF STATEMENT NOT ACCEPTING TABLE NAME IN CUSTOM COLUMN FORMULA</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2406388#M63194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368077" data-lia-user-login="pbianalyst" class="lia-mention lia-mention-user"&gt;pbianalyst&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you use dax in Power Query Editor. We need to use M code to create custom column.&lt;/P&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Try this code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if List.Contains(MH_ICD10_CODES[MH_ICD10_CODES],[DX_1]) = true then "Y" else "N"&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:17:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-STATEMENT-NOT-ACCEPTING-TABLE-NAME-IN-CUSTOM-COLUMN-FORMULA/m-p/2406388#M63194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-21T10:17:58Z</dc:date>
    </item>
  </channel>
</rss>

