<?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: Grouping multiple rows in 1 based on one column value in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547822#M136441</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp; PFA, sample data and output.&amp;nbsp; Also, col1 is a column in a table and Col2 is measure created using below formula.&lt;BR /&gt;col2 Measure formula= CALCULATE(COUNT(Related Features))&lt;/P&gt;&lt;P&gt;please let me know if it works.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 00:12:43 GMT</pubDate>
    <dc:creator>sachingupta31</dc:creator>
    <dc:date>2023-11-23T00:12:43Z</dc:date>
    <item>
      <title>Grouping multiple rows in 1 based on one column value in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547346#M136419</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have below data in power BI.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;URL&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/XXX/v1/sac&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/XXX/v1/sac/&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is group the URL column value after cleaning them and then the final output should be like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;URL&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/XXX/v1/sac&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For first step I had removed the '/' from the end to make the URL same so that we can group. Below is the expression I have written.&lt;/P&gt;&lt;P&gt;Right (col1], 1) = "/",&lt;BR /&gt;LEFT(col1, LEN(col1) -1),&lt;BR /&gt;col1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;which gives the output = /XXX/v1/sac&lt;/P&gt;&lt;P&gt;For 2nd step I am trying to group using&amp;nbsp; SUMMARIZE DAX function, but it is not working for me. Can someone help on to achieve the desired output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 18:05:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547346#M136419</guid>
      <dc:creator>sachingupta31</dc:creator>
      <dc:date>2023-11-22T18:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple rows in 1 based on one column value in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547460#M136424</link>
      <description>&lt;P&gt;if the Url exactly matches, it should work. please share sample data to check.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 19:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547460#M136424</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-22T19:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple rows in 1 based on one column value in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547822#M136441</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp; PFA, sample data and output.&amp;nbsp; Also, col1 is a column in a table and Col2 is measure created using below formula.&lt;BR /&gt;col2 Measure formula= CALCULATE(COUNT(Related Features))&lt;/P&gt;&lt;P&gt;please let me know if it works.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 00:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3547822#M136441</guid>
      <dc:creator>sachingupta31</dc:creator>
      <dc:date>2023-11-23T00:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple rows in 1 based on one column value in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3548197#M136462</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650483" data-lia-user-login="sachingupta31" class="lia-mention lia-mention-user"&gt;sachingupta31&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;Below is my table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The following DAX might work for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
   CALCULATE(
      SUM('Table'[col2]),
      ALLEXCEPT('Table','Table'[col 1])
   )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;The final output is shown in the following figure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 05:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-rows-in-1-based-on-one-column-value-in-Power/m-p/3548197#M136462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-23T05:00:42Z</dc:date>
    </item>
  </channel>
</rss>

