<?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: Concatenate 2 different text rows based on the other column(s) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4172788#M165725</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Thanks a lot for your solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have taken calculated column method and it works fine and merging well .&lt;/P&gt;&lt;P&gt;Saved me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Morning starts with good news &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 05:44:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-25T05:44:53Z</dc:date>
    <item>
      <title>Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4166174#M165502</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am working on the scenario that to merge 2 "comments" into the single row if the comments are different content.&lt;/P&gt;&lt;P&gt;Below the table i am using for my DB and it has 2 same account names (masked) but forecast,revenue,cm% and comments are different values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case as the account names are same , then the "comments" should show in a single row , rest all the columns will summing up (already those requirement is done)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to merge "Comments" as below :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected result&lt;/STRONG&gt; : Same Account name so single row , different forecase,revenue and CM% so it summing up the values and for CM% we have already applied the logic , only the comments we need to merge in this condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to achieve this ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 05:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4166174#M165502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-23T05:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4167662#M165570</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;, try two measures below, and if you encounter any issues, let me know.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Forecast = SUM(Table[Forecast])
Total Revenue = SUM(Table[Revenue])
Total CM% = --Your logic for CM%&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Merged Comments = CONCATENATEX(
    VALUES(Table[Comments]),
    Table[Comments],
    " &amp;amp; "  -- Use any delimiter you prefer
)&lt;/LI-CODE&gt;&lt;P align="center"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;If so, please mark my post as the solution! &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Your Kudos are much appreciated!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Proud to be a Solution Specialist!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4167662#M165570</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-09-23T14:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4169423#M165638</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785426" data-lia-user-login="ahadkarimi" class="lia-mention lia-mention-user"&gt;ahadkarimi&lt;/a&gt;&amp;nbsp; Thanks for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&lt;STRONG&gt;New Comments&lt;/STRONG&gt; =&lt;/SPAN&gt; &lt;EM&gt;CONCATENATEX('Test Delivery Updates',VALUES('Test Delivery Updates'[Comments]),"&amp;amp;")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is not works and comments are repeating in a single rows.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 05:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4169423#M165638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T05:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4170051#M165647</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785426" data-lia-user-login="ahadkarimi" class="lia-mention lia-mention-user"&gt;ahadkarimi&lt;/a&gt;&amp;nbsp; FYI : I have applied an Unpivot column method for the selected columns in the dataset , so after that all the rows were duplicated with unpivot data .&lt;BR /&gt;Now each account has 27 rows post unpivot selected columns applied .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence it is showing different errors now with some other approached i did .&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt; &lt;/FONT&gt;:&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;Merged Comments = SUMMARIZE('Test Delivery Updates','&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Test Delivery Updates'[Account Name],&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;"New Comments",&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;CONCATENATEX('Test Delivery Updates',&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;'Test Delivery Updates'[Comments] ,"&amp;amp;",'Test Delivery Updates'[Comments],ASC&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;)&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;EM&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt; -- &lt;EM&gt;"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4170051#M165647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T09:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4172751#M165724</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;The "This is not works and comments are repeating in a single rows" you mentioned is probably because you have used "New Comments = CONCATENATEX('Test Delivery Updates',VALUES('Test Delivery Updates'[Comments]),"&amp;amp;")" to create calculated column instead of measure.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;If you want to create a calculated column, use the following DAX:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MergedComments = 
CALCULATE(
    CONCATENATEX(
        DISTINCT('Test Delivery Updates'[Comments]),
        'Test Delivery Updates'[Comments],
        " &amp;amp; "
    ),
    ALLEXCEPT('Test Delivery Updates', 'Test Delivery Updates'[Account Name])
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;If you want to create a table, use the following DAX:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MergedTable = 
SUMMARIZE(
    'Test Delivery Updates',
    'Test Delivery Updates'[Account Name],
    "MergedComments", CONCATENATEX(
        FILTER(
            'Test Delivery Updates',
            'Test Delivery Updates'[Account Name] = EARLIER('Test Delivery Updates'[Account Name])
        ),
        'Test Delivery Updates'[Comments],
        "&amp;amp;"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Here are my simple test results:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jarvis Tang&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 05:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4172751#M165724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-25T05:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate 2 different text rows based on the other column(s)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4172788#M165725</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Thanks a lot for your solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have taken calculated column method and it works fine and merging well .&lt;/P&gt;&lt;P&gt;Saved me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Morning starts with good news &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 05:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Concatenate-2-different-text-rows-based-on-the-other-column-s/m-p/4172788#M165725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-25T05:44:53Z</dc:date>
    </item>
  </channel>
</rss>

