<?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 Need to Create New Column using Combination of multiple row with same Code in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259301#M120468</link>
    <description>&lt;P&gt;Hello Users,&lt;/P&gt;&lt;P&gt;I need to create one custom column using Power Query / DAX&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per below images, i have one column conatins code against each item Name&lt;/P&gt;&lt;P&gt;in result i&amp;nbsp; need one column that conatins only single line for each item (IF both item having same code)&lt;/P&gt;&lt;P&gt;please find below images for refrence. i need output as per shown in output snapshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 09:40:52 GMT</pubDate>
    <dc:creator>Dhrutivyasa-070</dc:creator>
    <dc:date>2023-05-30T09:40:52Z</dc:date>
    <item>
      <title>Need to Create New Column using Combination of multiple row with same Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259301#M120468</link>
      <description>&lt;P&gt;Hello Users,&lt;/P&gt;&lt;P&gt;I need to create one custom column using Power Query / DAX&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per below images, i have one column conatins code against each item Name&lt;/P&gt;&lt;P&gt;in result i&amp;nbsp; need one column that conatins only single line for each item (IF both item having same code)&lt;/P&gt;&lt;P&gt;please find below images for refrence. i need output as per shown in output snapshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 09:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259301#M120468</guid>
      <dc:creator>Dhrutivyasa-070</dc:creator>
      <dc:date>2023-05-30T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Create New Column using Combination of multiple row with same Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259524#M120480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275582" data-lia-user-login="Dhrutivyasa-070" class="lia-mention lia-mention-user"&gt;Dhrutivyasa-070&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try the following measures&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Item (Combo) =&lt;BR /&gt;CONCATENATEX ( VALUES ( 'Table'[Item] ), 'Table'[Item], ", " )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total Qty =&lt;BR /&gt;SUM ( 'Table'[Qty] )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Remark =&lt;BR /&gt;IF ( COUNTROWS ( VALUES ( 'Table'[Item] ) ) &amp;gt; 1, "Combo", "-" )&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 11:16:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259524#M120480</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-30T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Create New Column using Combination of multiple row with same Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259537#M120482</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275582" data-lia-user-login="Dhrutivyasa-070" class="lia-mention lia-mention-user"&gt;Dhrutivyasa-070&lt;/a&gt;&amp;nbsp;you can create NEW table in Power BI as following:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TableCombo = &lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Sheet7&lt;/SPAN&gt;&lt;SPAN&gt;[Code]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Qty"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[M_Qty]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Item (Combo)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;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p;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TableCombo - is name of NEW table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sheet7 you should adjust to your table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;M_Qty = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet7&lt;/SPAN&gt;&lt;SPAN&gt;[Qty]&lt;/SPAN&gt;&lt;SPAN&gt;) - this is measure which you should create so table above is working&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Original reference to this solution:&amp;nbsp;&lt;A href="https://dax.guide/concatenatex/" target="_self"&gt;https://dax.guide/concatenatex/&lt;/A&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Output should be like on picture below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this help&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;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 11:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259537#M120482</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-05-30T11:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Create New Column using Combination of multiple row with same Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259728#M120493</link>
      <description>&lt;P&gt;cobovalues =&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCT(code),CONCATENATE([item],"+",[item]),SUM(Qty),IF(COUNTROWS(DISTINCT(code),"Combo","-")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 13:10:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3259728#M120493</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-05-30T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Create New Column using Combination of multiple row with same Code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3261470#M120624</link>
      <description>&lt;P&gt;Thanks for the solution, it worked for me!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-Create-New-Column-using-Combination-of-multiple-row-with/m-p/3261470#M120624</guid>
      <dc:creator>Dhrutivyasa-070</dc:creator>
      <dc:date>2023-05-31T09:34:04Z</dc:date>
    </item>
  </channel>
</rss>

