<?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: Specific values from one column inserted to new one in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3229031#M118419</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&lt;/P&gt;
&lt;P&gt;I cannot update the sample file right now as already left the office. So I will try to explain in words.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case you don't need the calculated column. Just manually insert a single column disconnect table that contains the names of the languages (each single language in a row) 'Languages'[Language]&lt;BR /&gt;Now you can place the flowing FilterMeasure in the filter pane of the table, select "is not blank" then apply the filter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Language Skills =&lt;BR /&gt;VAR SelectedLanguages =&lt;BR /&gt;VALUES ( Languages[Language] )&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;'Table',&lt;BR /&gt;VAR String = 'Table'[SummarySkills]&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;VAR T2 =&lt;BR /&gt;SELECTCOLUMNS ( T1, "@Item", PATHITEM ( Items, [Value] ) )&lt;BR /&gt;VAR T3 =&lt;BR /&gt;INTERSECT ( T2, SelectedLanguages )&lt;BR /&gt;RETURN&lt;BR /&gt;NOT ISEMPTY ( T3 )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 14:37:32 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-10T14:37:32Z</dc:date>
    <item>
      <title>Specific values from one column inserted to new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228793#M118389</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a "SummarySkills" column with different skills in one cell, here is the sample of three cells in one column: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"C#, DAX, French, Italian, JavaScript" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Italian, ABAP Programming, MS Azure" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"MS Azure, Java, SQL" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to create new column "LanguageSkills" which will take from the "SummarySkills" column only values with "French" and "Italian". How should the formula of the column look like? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output I want to achieve is like that: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"French, Italian" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Italian" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 12:53:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228793#M118389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Specific values from one column inserted to new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228868#M118396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Language Skills = 
VAR String = 'Table'[SummarySkills]
VAR Items = SUBSTITUTE ( String, ", ", "|" )
VAR Length = COALESCE ( PATHLENGTH ( Items ), 1 )
VAR T1 = GENERATESERIES ( 1, Length, 1 )
VAR T2 = SELECTCOLUMNS ( T1, "@Item", PATHITEM ( Items, [Value] ) )
VAR T3 = INTERSECT ( T2, { "French", "Italian" } )
RETURN
    CONCATENATEX ( T3, [@Item],", " )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 13:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228868#M118396</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-10T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Specific values from one column inserted to new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228960#M118410</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you, that was really helpful! Could you help me with one more thing? I have a filtering dropdown with couple of those languages and I want to display them one by one.&lt;BR /&gt;For instance, I want to get rid off "French, German" and keep in dropdown only&lt;BR /&gt;"French",&lt;BR /&gt;"German".&lt;BR /&gt;So when a person X has skills both in French and German I want him to be displayed in table when I select any of those languages.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:07:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3228960#M118410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Specific values from one column inserted to new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3229031#M118419</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&lt;/P&gt;
&lt;P&gt;I cannot update the sample file right now as already left the office. So I will try to explain in words.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case you don't need the calculated column. Just manually insert a single column disconnect table that contains the names of the languages (each single language in a row) 'Languages'[Language]&lt;BR /&gt;Now you can place the flowing FilterMeasure in the filter pane of the table, select "is not blank" then apply the filter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Language Skills =&lt;BR /&gt;VAR SelectedLanguages =&lt;BR /&gt;VALUES ( Languages[Language] )&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;'Table',&lt;BR /&gt;VAR String = 'Table'[SummarySkills]&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;VAR T2 =&lt;BR /&gt;SELECTCOLUMNS ( T1, "@Item", PATHITEM ( Items, [Value] ) )&lt;BR /&gt;VAR T3 =&lt;BR /&gt;INTERSECT ( T2, SelectedLanguages )&lt;BR /&gt;RETURN&lt;BR /&gt;NOT ISEMPTY ( T3 )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Specific-values-from-one-column-inserted-to-new-one/m-p/3229031#M118419</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-10T14:37:32Z</dc:date>
    </item>
  </channel>
</rss>

