<?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: How to transform grouped data? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603447#M139230</link>
    <description>&lt;P&gt;many thanks it works!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 11:08:11 GMT</pubDate>
    <dc:creator>alex-JF</dc:creator>
    <dc:date>2023-12-27T11:08:11Z</dc:date>
    <item>
      <title>How to transform grouped data?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603014#M139207</link>
      <description>&lt;P&gt;Hi there, kinda difficult to explain what I want to get, therefore difficult to find something similar in forum, so I hope you can point me to the right stuff. To explain my point I'll prowide examples. Thank you in advance&lt;/P&gt;&lt;P&gt;Want to get:&lt;/P&gt;&lt;P&gt;john - mary,helga&lt;/P&gt;&lt;P&gt;bob - kate,alexa&lt;/P&gt;&lt;P&gt;smith - linda&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example source:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;manager&lt;/TD&gt;&lt;TD&gt;customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;mary&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;kate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;alexa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;helga&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;smith&lt;/TD&gt;&lt;TD&gt;linda&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 27 Dec 2023 07:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603014#M139207</guid>
      <dc:creator>alex-JF</dc:creator>
      <dc:date>2023-12-27T07:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform grouped data?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603049#M139208</link>
      <description>&lt;P&gt;To transform the grouped data in Power BI from the example source to the desired format, you can use the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Load Your Data&lt;/STRONG&gt;: Make sure you have loaded your data into Power BI. For this example, you'll have a table with columns named manager and customer.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Group Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the Home tab in Power BI.&lt;/LI&gt;&lt;LI&gt;Click on Transform data to open the Power Query Editor.&lt;/LI&gt;&lt;LI&gt;In the Power Query Editor:&lt;UL&gt;&lt;LI&gt;Select the manager column.&lt;/LI&gt;&lt;LI&gt;Click on the Group By option in the ribbon.&lt;/LI&gt;&lt;LI&gt;In the dialog that appears, choose All Rows for the Operation and customer for the New column name. This will group the customers for each manager.&lt;/LI&gt;&lt;LI&gt;Click OK.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Expand the Grouped Column&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After grouping, you will see a new column added, which contains lists of customers for each manager.&lt;/LI&gt;&lt;LI&gt;Click on the small double-arrow icon in the column header of the new column to expand the lists.&lt;/LI&gt;&lt;LI&gt;Choose to expand the lists into new rows.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Clean Up Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You might end up with null values for some rows (like for the smith - linda row since there's only one customer). You can handle this by replacing null values with appropriate placeholders or by removing unnecessary columns/rows.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Rename and Format&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rename columns as needed. For instance, the grouped manager column might be renamed to just Manager, and the expanded customer column might be renamed to Customers.&lt;/LI&gt;&lt;LI&gt;You can further format or manipulate the data as required for your visualization or analysis.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Close &amp;amp; Apply&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Once you're done transforming the data in the Power Query Editor, click on Close &amp;amp; Apply in the top-left corner to apply the changes and return to the main Power BI window.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After these steps, your data should be transformed to the desired format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEX&lt;/P&gt;&lt;P&gt;john - mary,helga&lt;BR /&gt;bob - kate,alexa&lt;BR /&gt;smith - linda&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now you can use this transformed data in your Power BI reports and visualizations as required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 07:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603049#M139208</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-27T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform grouped data?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603264#M139215</link>
      <description>&lt;P&gt;I'm running into a problem:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I try to expand&lt;/P&gt;&lt;P&gt;I'm ending up with my previous table without summarisation customers&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;what am I doing wrong? So when I'm trying to expand, I get new rows instead of new columns&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 09:37:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603264#M139215</guid>
      <dc:creator>alex-JF</dc:creator>
      <dc:date>2023-12-27T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform grouped data?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603372#M139224</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="551211" data-lia-user-login="alex-JF" class="lia-mention lia-mention-user"&gt;alex-JF&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please check the attached file&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 10:21:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603372#M139224</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-27T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform grouped data?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603447#M139230</link>
      <description>&lt;P&gt;many thanks it works!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 11:08:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-transform-grouped-data/m-p/3603447#M139230</guid>
      <dc:creator>alex-JF</dc:creator>
      <dc:date>2023-12-27T11:08:11Z</dc:date>
    </item>
  </channel>
</rss>

