<?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: Add a new column or merge tables in Power Query in Dataflow in Data Factory in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756636#M2376</link>
    <description>&lt;P&gt;Forecasted Data - Data goes on from 1/23 to 12/24&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Shipments Data - Data goes on from 1/23 to 5/23&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to see this output in power query in data factory.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 02:15:42 GMT</pubDate>
    <dc:creator>divyamalhotra12</dc:creator>
    <dc:date>2024-03-12T02:15:42Z</dc:date>
    <item>
      <title>Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3752148#M2357</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I have two tables that I have imported in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Power Query&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DataFlow in Data factory. Table 1 shows forecasts units data for 2 years and table 2 shows shipped data for 6 months.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Table 1 (Forecasts) has Parts column, unit price and 24 columns showing the 24 months starting from Jan'23 to Dec'24. I unpivoted those columns in Power Query to get one column as 'Month'. Hence, each FCST part now will have 24 rows of data showing the forecasted units every month for 24 months.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In table 2, I have the same Parts Column called Shipped Parts. I grouped the data by part and by month and aggregated by Shipped Qty. It gave me 3 columns. Parts, Month, Qty.&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I want to see the parts, month, shipped qty and forecasted qty together in this format.&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon doing a merge using either left outer, right outer or full outer joins, I am getting 6 rows for each part for each month. I just want to see Part A, Jan, Shipped units and forecasted units in Jan and for other months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Power Query&lt;/STRONG&gt;?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2024 22:16:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3752148#M2357</guid>
      <dc:creator>divyamalhotra12</dc:creator>
      <dc:date>2024-03-08T22:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3755895#M2360</link>
      <description>&lt;P&gt;Hi divyamalhotra12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few things which may be causing your issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you correctly performing the merge where both Join Columns (Parts and Month) have been highlighted for each of the tables, during the setup? I suspect you might only be joining on the Parts column, hence it exploding your resulting dataset. Left Outer join should work well for you.&lt;/LI&gt;&lt;LI&gt;After Merging, you will need to expand the columns of the table you are joining on to the original dataset. If you wish to exclude some columns, you can leave them unchecked during the expand step.&lt;BR /&gt;&lt;BR /&gt;_____________________________________________________&lt;BR /&gt;I hope my comment was helpful.&lt;BR /&gt;If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.&lt;BR /&gt;Find me on &lt;A href="https://www.linkedin.com/in/jonvoge/" target="_blank"&gt;LinkedIn&lt;/A&gt;, &lt;A href="https://sessionize.com/jon-voge/" target="_blank"&gt;Sessionize&lt;/A&gt;, or my blog &lt;A href="https://downhill-data.com/" target="_blank"&gt;Downhill Data&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 11 Mar 2024 16:48:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3755895#M2360</guid>
      <dc:creator>Jonvoge</dc:creator>
      <dc:date>2024-03-11T16:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756442#M2369</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;Could you share a screenshot on how you're doing the merge between both tables? I'd definitely use both the Month and the parts columns as the fields to use for the merge. Not just one of them.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 23:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756442#M2369</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-03-11T23:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756488#M2370</link>
      <description>&lt;P&gt;I tried doing what you mentioned but it somehow shows me two entries per part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way apart from merge to perform this operation? Can I use the add column feature somehow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I believe unpivoting the column is not helping at all. For instance, when i click on unpivot column by selecting all 24 columns showing the 24 months then idelally it should show the sum of column 1/1/2023 corresponding the part ID but it does not do that. It is just taking the first value. How can I ensure that I see the sum of the month of jan'23 against the Part ID?&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;</description>
      <pubDate>Tue, 12 Mar 2024 00:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756488#M2370</guid>
      <dc:creator>divyamalhotra12</dc:creator>
      <dc:date>2024-03-12T00:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756528#M2374</link>
      <description>&lt;P&gt;Could you perhaps share some sample data of both of your tables and we can work together on creating a sample solution with those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read about the unpivot operation from the link below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/unpivot-column" target="_blank"&gt;Unpivot columns - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It doesn't do any sort of aggregation, but you can do the aggregations doing a Group By for example. Below is the link to the documentation around the Group By feature:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/group-by" target="_blank"&gt;How to GROUP BY or summarize rows - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 01:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756528#M2374</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-03-12T01:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756636#M2376</link>
      <description>&lt;P&gt;Forecasted Data - Data goes on from 1/23 to 12/24&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Shipments Data - Data goes on from 1/23 to 5/23&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to see this output in power query in data factory.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 02:15:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3756636#M2376</guid>
      <dc:creator>divyamalhotra12</dc:creator>
      <dc:date>2024-03-12T02:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3758726#M2397</link>
      <description>&lt;P&gt;any way that you can share the data as a table and not an image? or perhaps a sample file that we could access?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:11:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3758726#M2397</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-03-12T18:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3763287#M2464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="702837" data-lia-user-login="divyamalhotra12" class="lia-mention lia-mention-user"&gt;divyamalhotra12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 10:46:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3763287#M2464</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-03-14T10:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3770398#M2491</link>
      <description>&lt;P&gt;Can you share the Power Query script that you've created to better unerdstand how things are working today for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can go into the View tab in the ribbon and then select the "Advanced Editor" to show the dialog. Then just copy-paste to here and make sure to remove any personal information from the code that you do not wish to publicly share.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 07:20:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3770398#M2491</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-03-18T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3773436#M2502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="702837" data-lia-user-login="divyamalhotra12" class="lia-mention lia-mention-user"&gt;divyamalhotra12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 05:44:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3773436#M2502</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-03-19T05:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new column or merge tables in Power Query in Dataflow in Data Factory</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3789617#M2558</link>
      <description>&lt;P&gt;The merge worked properly using this solution. There was a problem with unpivit column operation I was performing prior to merging. Once, that got fixed, the merge operation worked properly&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 15:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Add-a-new-column-or-merge-tables-in-Power-Query-in-Dataflow-in/m-p/3789617#M2558</guid>
      <dc:creator>divyamalhotra12</dc:creator>
      <dc:date>2024-03-25T15:41:13Z</dc:date>
    </item>
  </channel>
</rss>

