<?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 Inconsistent Validation for Syntax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173112#M50503</link>
    <description>&lt;P&gt;I added a custom column using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if SEARCH( "FY",[Deal ID],1,0)&amp;gt;0 then [Deal ID]&lt;BR /&gt;else [Sales Order]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get confirmation of no syntax errors, but when I click 'OK' to exit out of the custom column screen, the main screen then throws the following:&lt;/P&gt;&lt;P&gt;Expression.Error: The name 'SEARCH' wasn't recognized. Make sure it's spelled correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with what I am doing incorrectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 16:53:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-04T16:53:36Z</dc:date>
    <item>
      <title>Inconsistent Validation for Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173112#M50503</link>
      <description>&lt;P&gt;I added a custom column using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if SEARCH( "FY",[Deal ID],1,0)&amp;gt;0 then [Deal ID]&lt;BR /&gt;else [Sales Order]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get confirmation of no syntax errors, but when I click 'OK' to exit out of the custom column screen, the main screen then throws the following:&lt;/P&gt;&lt;P&gt;Expression.Error: The name 'SEARCH' wasn't recognized. Make sure it's spelled correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with what I am doing incorrectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 16:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173112#M50503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Validation for Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173170#M50505</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;If this is DAX then it should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if(SEARCH( "FY",[Deal ID],1,0)&amp;gt;0, [Deal ID], [Sales Order])&lt;/LI-CODE&gt;
&lt;P&gt;If this is Power Query Editor then your if then else syntax is correct but there is no SEARCH function in Power Query it is something like Text.Contains.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 17:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173170#M50505</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-11-04T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Validation for Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173343#M50514</link>
      <description>&lt;P&gt;Thank you! This was in&amp;nbsp;&lt;SPAN&gt;Power Query Editor, so I was able to use Text. function to get what I needed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 18:46:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inconsistent-Validation-for-Syntax/m-p/2173343#M50514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T18:46:23Z</dc:date>
    </item>
  </channel>
</rss>

