<?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: Hello, I need help with Dax code  to concatenate few columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900246#M94435</link>
    <description>&lt;P&gt;I would do that kind of thing in the query editor, but here is a DAX column expression you can use. A virtual table is created with { }, filtered to remove blanks, and then the results are concatenated with no delimiter. Replace T1 with your actual table name.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat =
VAR ValuesAsTable =
    FILTER ( { T1[C1], T1[C2], T1[C3], T1[C4] }, [Value] &amp;lt;&amp;gt; "" )
RETURN
    CONCATENATEX ( ValuesAsTable, [Value], "" )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 13:07:57 GMT</pubDate>
    <dc:creator>ppm1</dc:creator>
    <dc:date>2022-11-11T13:07:57Z</dc:date>
    <item>
      <title>Hello, I need help with Dax code  to concatenate few columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900193#M94429</link>
      <description>&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I want to concatenate C1,C2,C3,C4 columns and I don't want to include Null values in the Output Column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 12:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900193#M94429</guid>
      <dc:creator>Vijay_Kumar_P</dc:creator>
      <dc:date>2022-11-11T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, I need help with Dax code  to concatenate few columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900234#M94434</link>
      <description>&lt;P&gt;You can add a new column with the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output = Data[C1]&amp;amp;Data[C2]&amp;amp;Data[C3]&amp;amp;Data[C4]&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900234#M94434</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-11T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, I need help with Dax code  to concatenate few columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900246#M94435</link>
      <description>&lt;P&gt;I would do that kind of thing in the query editor, but here is a DAX column expression you can use. A virtual table is created with { }, filtered to remove blanks, and then the results are concatenated with no delimiter. Replace T1 with your actual table name.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat =
VAR ValuesAsTable =
    FILTER ( { T1[C1], T1[C2], T1[C3], T1[C4] }, [Value] &amp;lt;&amp;gt; "" )
RETURN
    CONCATENATEX ( ValuesAsTable, [Value], "" )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-I-need-help-with-Dax-code-to-concatenate-few-columns/m-p/2900246#M94435</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2022-11-11T13:07:57Z</dc:date>
    </item>
  </channel>
</rss>

