<?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 Split a string of values into Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929850#M96358</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using Embeded power BI, in the Username() i am getting list of values "A,B,C,D". When i am reading this it is considering as a string not as a list of values. Anyone come accross this situation, where i need to put this into a table as list of values and use that column in the RLS then my data gets filtered. Really facing very challenging. OR Is there any alternative ways to read the access token can retrieve the list of values and store those values? really very tricky. Your suggestion and guidence much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 15:22:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-25T15:22:16Z</dc:date>
    <item>
      <title>Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929850#M96358</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using Embeded power BI, in the Username() i am getting list of values "A,B,C,D". When i am reading this it is considering as a string not as a list of values. Anyone come accross this situation, where i need to put this into a table as list of values and use that column in the RLS then my data gets filtered. Really facing very challenging. OR Is there any alternative ways to read the access token can retrieve the list of values and store those values? really very tricky. Your suggestion and guidence much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 15:22:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929850#M96358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T15:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929924#M96361</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Option one remove double quotes and split commas into new rows &lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/" target="_blank"&gt;https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also check this option&lt;/P&gt;
&lt;P&gt;Power BI- Text Part slicer to filter/search text - &lt;A href="https://youtu.be/MKKWeOqFG4c" target="_blank"&gt;https://youtu.be/MKKWeOqFG4c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 15:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929924#M96361</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-25T15:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929968#M96364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please provide one clear example of what are you trying to achieve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:19:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2929968#M96364</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-25T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930013#M96367</link>
      <description>&lt;P&gt;Hi Tamerj1, Thanks for responding. I am using Embeding Power BI. In that we are using RLS. In general secenarios, RLS works based on Username(), Userprincipalname() where it will return either user name or user email id. With embeded power BI RLS scenario, we can get any value in the username() as part of the requirement on which value we should filter the data. As part of RLS, i am getting a string with list of values where user can see the report only with list of values corresponding data. Here string contains "Program1,Program2,Program3.." like so on. I should able to read this string and filter the data for those program related data. As i get the list of values in the form of string i need to store this as a list or column and then only can filter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930013#M96367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930015#M96368</link>
      <description>&lt;P&gt;HI Amit, Thanks for your response. Is there a way i can insert a measure value in a new table. After that i can do the transformation the way you shared the details.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 17:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930015#M96368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930104#M96370</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't fully understand but you may create a table using the following DAX&lt;/P&gt;
&lt;P&gt;List =&lt;BR /&gt;VAR String = "P1,P2,P3" -- place your sting here&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( String, ",", "|" )&lt;BR /&gt;VAR Length =&lt;BR /&gt;COALESCE ( PATHLENGTH ( Items ), 1 )&lt;BR /&gt;VAR T1 =&lt;BR /&gt;GENERATESERIES ( 1, Length, 1 )&lt;BR /&gt;RETURN&lt;BR /&gt;SELECTCOLUMNS ( T1, "Project", PATHITEM ( Items, [Value] ) )&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 18:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930104#M96370</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-25T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930218#M96375</link>
      <description>&lt;P&gt;Hi Tamerj,&lt;/P&gt;&lt;P&gt;i have created a measure same as mentioned.&amp;nbsp; I assume that it returns the table but somehow i am not able to see any thing. Do i need to create any table prior to this?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RLS_Key = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"P1,P2,P3"&lt;/SPAN&gt; &lt;SPAN&gt;-- place your sting here&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Items&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;SUBSTITUTE&lt;/SPAN&gt;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lt;SPAN&gt;"Project"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;PATHITEM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Items&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Could you please clarify.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 21:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930218#M96375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930504#M96392</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Again, I'm sorry but I really don't understand what is this string or what are you trying to achieve. However, the proposed DAX is for a calculated table as per your request not a for measure.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 08:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930504#M96392</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-26T08:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930707#M96407</link>
      <description>&lt;P&gt;Here is the same solution&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Embedded-RLS/m-p/2930629#M96402" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Embedded-RLS/m-p/2930629#M96402&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 17:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2930707#M96407</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-26T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string of values into Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2933323#M96557</link>
      <description>&lt;P&gt;Thanks for your reply. As suggested instead of using as measure used the same in the Manager role. It is working as expected.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-a-string-of-values-into-Columns/m-p/2933323#M96557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-28T15:26:06Z</dc:date>
    </item>
  </channel>
</rss>

