<?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 Dax trim function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217302#M117482</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am working on a project and I would like to ask for some help.&lt;/P&gt;&lt;P&gt;As you can see in the image the left column(injured body parts) is coming from a checklist and is stored in a list separated by ;#. Is there a chance to trim that and add every injured body part related to the id column separately? I just need it on separate lines so I can make a relationship with another table that stores the single body parts&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 07:56:10 GMT</pubDate>
    <dc:creator>simona0808</dc:creator>
    <dc:date>2023-05-03T07:56:10Z</dc:date>
    <item>
      <title>Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217302#M117482</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am working on a project and I would like to ask for some help.&lt;/P&gt;&lt;P&gt;As you can see in the image the left column(injured body parts) is coming from a checklist and is stored in a list separated by ;#. Is there a chance to trim that and add every injured body part related to the id column separately? I just need it on separate lines so I can make a relationship with another table that stores the single body parts&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 07:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217302#M117482</guid>
      <dc:creator>simona0808</dc:creator>
      <dc:date>2023-05-03T07:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217340#M117485</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not 100% I follow but I assume you want to separate the list using ;# as delimiter and have the results show on different rows?&lt;BR /&gt;&lt;BR /&gt;If you have access to powerquery I recommend doign this there like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Right-click and select "split column by delimiter" -&amp;gt; Select custom and enter ;#&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Select created column and unpivot:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;In dax you can do with e.g. using substitute function and some tricks. Here is an example blog of this by entreprisedna:&amp;nbsp;&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;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 08:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217340#M117485</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-05-03T08:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217343#M117487</link>
      <description>&lt;P&gt;Thank you very much for your answer! Thats what I want. I tried your approach but it says that it cant be applied in direct query mode.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 08:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217343#M117487</guid>
      <dc:creator>simona0808</dc:creator>
      <dc:date>2023-05-03T08:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217351#M117491</link>
      <description>&lt;P&gt;In Directquery mode I am pretty sure this won't work and you will have to use dax option. If possible try changing your conenction to import/composite model then the original soltuion I provide should work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 08:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217351#M117491</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-05-03T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217354#M117493</link>
      <description>&lt;P&gt;Unfortunately, I am not able to change it due to customer requirements. Do you know how this can be done using Dax?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 08:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217354#M117493</guid>
      <dc:creator>simona0808</dc:creator>
      <dc:date>2023-05-03T08:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217443#M117495</link>
      <description>&lt;P&gt;It can be done with dax for example like described in the blog I linked&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 09:08:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217443#M117495</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-05-03T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217569#M117502</link>
      <description>&lt;P&gt;I tried to implement the steps from the tutorial however I encountered an error that pathlength is not a function and can be used in a direct query mode( again the same problem)&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 10:14:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3217569#M117502</guid>
      <dc:creator>simona0808</dc:creator>
      <dc:date>2023-05-03T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3228401#M118343</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365283" data-lia-user-login="simona0808" class="lia-mention lia-mention-user"&gt;simona0808&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;What type of data source are you worked on? If you mean SQL or other type of Datasources which support T-SQL queries, I’d like to suggest you turn on the 'advanced option' -&amp;gt; 'SQL statemen' options in data connector to use custom T-SQL query to handle these conversions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-sql-tutorial#create-and-publish-a-power-bi-desktop-file" target="_blank"&gt;Tutorial: Connect to on-premises data in SQL Server - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 08:33:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3228401#M118343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T08:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dax trim function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3230038#M118496</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I believe I need to use a SQL query to achieve my goal. Currently, I have a column in my database that contains multiple values per row, as it's derived from a checklist. However, for my Power BI report, I need to use a single value as a page-level filter. To do this, I would like to split the values in this column into separate rows so that each row contains only one value. Can you assist me in creating a SQL query to accomplish this task?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:44:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-trim-function/m-p/3230038#M118496</guid>
      <dc:creator>simona0808</dc:creator>
      <dc:date>2023-05-11T07:44:35Z</dc:date>
    </item>
  </channel>
</rss>

