<?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: can we do this similar below in power BI dax. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2333261#M58684</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Check this power query solution. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Ncs5DoAgFEXRrRhqAzhU38Z9GArg4xQikWdcv0P0nvoOg1jZeUrZ+hjomJeNeus8h3GSzJgZkClPVN0pxqMQpvw27BEhnyGTUhY/ybCMWmv9rk1764QxFw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Changed Type","@","//",Replacer.ReplaceText,{"Column1"}),
    #"Extracted Text Between Delimiters" = Table.TransformColumns(#"Replaced Value", {{"Column1", each Text.BetweenDelimiters(_, "//", ":"), type text}})
in
    #"Extracted Text Between Delimiters"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this code as power query/transform data in blank query and check&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 11:05:20 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-02-11T11:05:20Z</dc:date>
    <item>
      <title>can we do this similar below in power BI dax.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2332674#M58659</link>
      <description>&lt;P&gt;case&lt;BR /&gt;when position('jdbc:snowflake' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:oracle' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '@', 2), ':',1)&lt;BR /&gt;when position('jdbc:sqlserver' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:db2' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:teradata' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:postgresql' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:spark' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '/', 3), ':',1)&lt;BR /&gt;when position('jdbc:mongodb' in jdbc_url) &amp;gt; 0 then split_part(split_part (jdbc_url, '=', 2), ';',1)&lt;BR /&gt;else jdbc_url&lt;BR /&gt;end as JdbcHost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg:&amp;nbsp;jdbc:oracle:thin:@abcdefg.ddshdss.org:1111/dsdsds - need to split the particular text (abcdefg.ddshdss.org)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; jdbc:sqlserver://asasasasas.dsads2000.org:34343; - (asasasasas.dsads2000.org)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2332674#M58659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: can we do this similar below in power BI dax.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2332730#M58661</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , you have to create something like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _1 =mid([jdbc_url],search("/", [jdbc_url],,0 ) ,3)&lt;BR /&gt;Switch(True() ,&lt;BR /&gt;search("jdbc:snowflake", [jdbc_url],,0 ) &amp;gt;0 , mid(_1,search(":", _1,,0 ) ,1)&lt;BR /&gt;// Add other columns &lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 08:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2332730#M58661</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-11T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: can we do this similar below in power BI dax.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2333204#M58681</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;, This above DAX is not working for me. jdbc_url is a column not a hard corded value or measure. Could u please help the exact dax fo this solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 10:48:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2333204#M58681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: can we do this similar below in power BI dax.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2333261#M58684</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Check this power query solution. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Ncs5DoAgFEXRrRhqAzhU38Z9GArg4xQikWdcv0P0nvoOg1jZeUrZ+hjomJeNeus8h3GSzJgZkClPVN0pxqMQpvw27BEhnyGTUhY/ybCMWmv9rk1764QxFw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Changed Type","@","//",Replacer.ReplaceText,{"Column1"}),
    #"Extracted Text Between Delimiters" = Table.TransformColumns(#"Replaced Value", {{"Column1", each Text.BetweenDelimiters(_, "//", ":"), type text}})
in
    #"Extracted Text Between Delimiters"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this code as power query/transform data in blank query and check&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2333261#M58684</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-11T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: can we do this similar below in power BI dax.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2340840#M59077</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Compared to using DAX, it is easier to use the split function in Power Query. The method provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; is feasible , and I follow his method to extract the data you want .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _ Ailsa Tao&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 01:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/can-we-do-this-similar-below-in-power-BI-dax/m-p/2340840#M59077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-16T01:44:32Z</dc:date>
    </item>
  </channel>
</rss>

