<?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: How to get the word between 2 underscores in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3249216#M119838</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;This solution is very good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one issue, after split the inital column is lost. Can I keep it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hayk&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 15:07:17 GMT</pubDate>
    <dc:creator>haykp</dc:creator>
    <dc:date>2023-05-23T15:07:17Z</dc:date>
    <item>
      <title>How to get the word between 2 underscores</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3248263#M119767</link>
      <description>&lt;P&gt;Dear Power Bi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with my first steps in DAX.&lt;/P&gt;&lt;P&gt;So I have a file name which has different words all connected with underscores ("_"). Somehting like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sales1_germany_tests_lcd_2023_W17&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How I can parse and get each of the words in seperate column. In other words, what I need is some DAX expression which can return me the Word between the "_" symbol:&amp;nbsp; i.e. _&amp;lt;Word&amp;gt;_&lt;/P&gt;&lt;P&gt;and my final result should be&lt;/P&gt;&lt;P&gt;sales1&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;germany&lt;/P&gt;&lt;P&gt;tests&lt;/P&gt;&lt;P&gt;lcd&lt;/P&gt;&lt;P&gt;2023&lt;/P&gt;&lt;P&gt;W17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please share some hints about DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hayk&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:28:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3248263#M119767</guid>
      <dc:creator>haykp</dc:creator>
      <dc:date>2023-05-22T17:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the word between 2 underscores</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3248343#M119775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542319" data-lia-user-login="haykp" class="lia-mention lia-mention-user"&gt;haykp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power Query is perfect for what you would like to achieve!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here how to do it:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to use DAX for this, consider the following blog post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.enterprisedna.co/power-bi-split-column-by-delimiters-in-dax/" target="_blank"&gt;Power BI Split Column By Delimiters In DAX (enterprisedna.co)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="noopener"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3248343#M119775</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2023-05-22T18:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the word between 2 underscores</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3249216#M119838</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;This solution is very good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one issue, after split the inital column is lost. Can I keep it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hayk&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 15:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3249216#M119838</guid>
      <dc:creator>haykp</dc:creator>
      <dc:date>2023-05-23T15:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the word between 2 underscores</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3249259#M119841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542319" data-lia-user-login="haykp" class="lia-mention lia-mention-user"&gt;haykp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to hear! Just copy the column that you wanna keep before you do the split. You can do this by adding a new column and just refer to the original one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 15:38:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-word-between-2-underscores/m-p/3249259#M119841</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2023-05-23T15:38:39Z</dc:date>
    </item>
  </channel>
</rss>

