<?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 Extracting String Using LEFT and SEARCH function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508529#M69534</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to extract the number before the colon (see example below) using DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I did:&lt;/P&gt;&lt;P&gt;1. To return the specified number of characters I want (it worked)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;c_Search Request Target Time = &lt;/SPAN&gt;&lt;SPAN&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'MyRequest_Consolidated'[Request Target Time]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MyRequest_Consolidated'[Request Target Time]&lt;/SPAN&gt;&lt;SPAN&gt;))-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. To extract the number before the colon&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;c_Request Target Time = LEFT('MyRequest_Consolidated'[Request Target Time], MyRequest_Consolidated[c_Search Request Target Time])&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;The second formula returns the error below:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to extract the number I need before the colon (:)? The data type of the column is "Text". Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 May 2022 18:25:38 GMT</pubDate>
    <dc:creator>rosemilo</dc:creator>
    <dc:date>2022-05-11T18:25:38Z</dc:date>
    <item>
      <title>Extracting String Using LEFT and SEARCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508529#M69534</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to extract the number before the colon (see example below) using DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I did:&lt;/P&gt;&lt;P&gt;1. To return the specified number of characters I want (it worked)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;c_Search Request Target Time = &lt;/SPAN&gt;&lt;SPAN&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'MyRequest_Consolidated'[Request Target Time]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MyRequest_Consolidated'[Request Target Time]&lt;/SPAN&gt;&lt;SPAN&gt;))-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. To extract the number before the colon&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;c_Request Target Time = LEFT('MyRequest_Consolidated'[Request Target Time], MyRequest_Consolidated[c_Search Request Target Time])&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;The second formula returns the error below:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to extract the number I need before the colon (:)? The data type of the column is "Text". Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 May 2022 18:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508529#M69534</guid>
      <dc:creator>rosemilo</dc:creator>
      <dc:date>2022-05-11T18:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting String Using LEFT and SEARCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508543#M69536</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379938" data-lia-user-login="rosemilo" class="lia-mention lia-mention-user"&gt;rosemilo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide sample data?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 18:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508543#M69536</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-11T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting String Using LEFT and SEARCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508552#M69537</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379938" data-lia-user-login="rosemilo" class="lia-mention lia-mention-user"&gt;rosemilo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;c_Request Target Time =
IF (
    MyRequest_Consolidated[c_Search Request Target Time] &amp;gt; 0,
    LEFT (
        'MyRequest_Consolidated'[Request Target Time],
        MyRequest_Consolidated[c_Search Request Target Time]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 18:49:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508552#M69537</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-11T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting String Using LEFT and SEARCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508577#M69539</link>
      <description>&lt;P&gt;Thank you! It worked!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 19:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-String-Using-LEFT-and-SEARCH-function/m-p/2508577#M69539</guid>
      <dc:creator>rosemilo</dc:creator>
      <dc:date>2022-05-11T19:07:08Z</dc:date>
    </item>
  </channel>
</rss>

