<?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: extract string from values with different len in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018396#M158481</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Pls check the solution.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 11:10:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-01T11:10:31Z</dc:date>
    <item>
      <title>extract string from values with different len</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018257#M158465</link>
      <description>&lt;P&gt;Hi, I have several Store[point of sale] column values that are compound names, where there is a code and then the actual point of sale name. For example.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;123 Ltd. Sea&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;234 srlsl Montagna&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;23456 asd Lake&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I just want to have the store names Sea, Montagna, Lake appear in a barplot. How do I extract them? Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018257#M158465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-01T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: extract string from values with different len</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018352#M158476</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, You can achieve this using DAX and creating a new calculated column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;StoreName &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR StoreText &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'YourTableName'&lt;/SPAN&gt;&lt;SPAN&gt;[Store]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;VAR SpacePosition &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;FIND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt;, StoreText, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(StoreText))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN &lt;/SPAN&gt;&lt;SPAN&gt;MID&lt;/SPAN&gt;&lt;SPAN&gt;(StoreText, SpacePosition &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(StoreText) &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; SpacePosition)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I have also attached PBIX file with sample data&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Jul 2024 10:31:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018352#M158476</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-01T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: extract string from values with different len</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018396#M158481</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Pls check the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 11:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4018396#M158481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-01T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract string from values with different len</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4024689#M158867</link>
      <description>&lt;P&gt;thank you, both works&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:11:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/extract-string-from-values-with-different-len/m-p/4024689#M158867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T09:11:12Z</dc:date>
    </item>
  </channel>
</rss>

