<?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: Power Query Experts - Need your support please in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4766470#M153105</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1292191" data-lia-user-login="Lio123" class="lia-mention lia-mention-user"&gt;Lio123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please follow below steps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Created sample data based on your screenshot. Please refer below snap.&lt;/SPAN&gt;&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;2. In Query editor, Click on "New source" --&amp;gt; "Blank Query" and click on "Advanced editor" remove the all code.&lt;/P&gt;
&lt;P&gt;Please paste the below M code in "Advanced editor" and click "OK".&amp;nbsp;&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;let&lt;BR /&gt;&lt;BR /&gt;Source = #table(&lt;BR /&gt;{"Country", "City", "Jan Payment", "Jan Profit", "Jan Loss", "Feb Payment", "Feb Profit", "Feb Loss", "Mar Payment", "Mar Profit", "Mar Loss"},&lt;BR /&gt;{&lt;BR /&gt;{"X", "A", 100, 5000, 0, 200, 200, 100, 150, 350, 10}&lt;BR /&gt;}&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Unpivoted = Table.UnpivotOtherColumns(Source, {"Country", "City"}, "Attribute", "Value"),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SplitAttribute = Table.SplitColumn(&lt;BR /&gt;Unpivoted,&lt;BR /&gt;"Attribute",&lt;BR /&gt;Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv),&lt;BR /&gt;{"Month", "Metric"}&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Pivoted = Table.Pivot(&lt;BR /&gt;SplitAttribute,&lt;BR /&gt;List.Distinct(SplitAttribute[Metric]),&lt;BR /&gt;"Metric",&lt;BR /&gt;"Value"&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Reordered = Table.SelectColumns(Pivoted, {"Country", "City", "Month", "Payment", "Profit", "Loss"})&lt;BR /&gt;in&lt;BR /&gt;Reordered&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Please refer output snap and attached PBIX file.&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;I hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2025 07:37:24 GMT</pubDate>
    <dc:creator>v-dineshya</dc:creator>
    <dc:date>2025-07-17T07:37:24Z</dc:date>
    <item>
      <title>Power Query Experts - Need your support please</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4765646#M153072</link>
      <description>&lt;P&gt;Dear All,&lt;BR /&gt;&lt;BR /&gt;I need your help in transforming the data in Power query. Please let me know how to achieve this.&lt;BR /&gt;&lt;BR /&gt;Table I have is :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And the format I want to convert the above table like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 16:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4765646#M153072</guid>
      <dc:creator>Lio123</dc:creator>
      <dc:date>2025-07-16T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Experts - Need your support please</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4765726#M153074</link>
      <description>&lt;P&gt;You can select 'Country' and 'City' columns and choose 'Unpivot other columns' on the Transform ribbon.&lt;/P&gt;
&lt;P&gt;Make sure the value column is a number.&lt;/P&gt;
&lt;P&gt;Split the 'Attribute' column by delimiter (space).&lt;/P&gt;
&lt;P&gt;Pivot on the 'Attribute.2' column, make sure aggregation is set to Sum on the value column.&lt;BR /&gt;Example code:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WilDSUXIEYkMDAyBpagCmQNjIAEFCJA1NQaSxKUREKVYnWikSyHSCcEGaQQRYE4wwhOgDawOxlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Country = _t, City = _t, #"Jan Payment" = _t, #"Jan Profit" = _t, #"Jan Loss" = _t, #"Feb Payment" = _t, #"Feb Profit" = _t, #"Feb Loss" = _t, #"Mar Payment" = _t, #"Mar Profit" = _t, #"Mar Loss" = _t]),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Country", "City"}, "Attribute", "Value"),
    #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Value", type number}}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type", "Attribute", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Month", "Item"}),
    #"Pivoted Column" = Table.Pivot(#"Split Column by Delimiter", List.Distinct(#"Split Column by Delimiter"[Item]), "Item", "Value", List.Sum)
in
    #"Pivoted Column"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&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>Wed, 16 Jul 2025 17:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4765726#M153074</guid>
      <dc:creator>jgeddes</dc:creator>
      <dc:date>2025-07-16T17:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Experts - Need your support please</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4766470#M153105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1292191" data-lia-user-login="Lio123" class="lia-mention lia-mention-user"&gt;Lio123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please follow below steps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Created sample data based on your screenshot. Please refer below snap.&lt;/SPAN&gt;&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;2. In Query editor, Click on "New source" --&amp;gt; "Blank Query" and click on "Advanced editor" remove the all code.&lt;/P&gt;
&lt;P&gt;Please paste the below M code in "Advanced editor" and click "OK".&amp;nbsp;&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;let&lt;BR /&gt;&lt;BR /&gt;Source = #table(&lt;BR /&gt;{"Country", "City", "Jan Payment", "Jan Profit", "Jan Loss", "Feb Payment", "Feb Profit", "Feb Loss", "Mar Payment", "Mar Profit", "Mar Loss"},&lt;BR /&gt;{&lt;BR /&gt;{"X", "A", 100, 5000, 0, 200, 200, 100, 150, 350, 10}&lt;BR /&gt;}&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Unpivoted = Table.UnpivotOtherColumns(Source, {"Country", "City"}, "Attribute", "Value"),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SplitAttribute = Table.SplitColumn(&lt;BR /&gt;Unpivoted,&lt;BR /&gt;"Attribute",&lt;BR /&gt;Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv),&lt;BR /&gt;{"Month", "Metric"}&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Pivoted = Table.Pivot(&lt;BR /&gt;SplitAttribute,&lt;BR /&gt;List.Distinct(SplitAttribute[Metric]),&lt;BR /&gt;"Metric",&lt;BR /&gt;"Value"&lt;BR /&gt;),&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Reordered = Table.SelectColumns(Pivoted, {"Country", "City", "Month", "Payment", "Profit", "Loss"})&lt;BR /&gt;in&lt;BR /&gt;Reordered&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Please refer output snap and attached PBIX file.&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;I hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 07:37:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4766470#M153105</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-07-17T07:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Experts - Need your support please</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4771139#M153235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1292191" data-lia-user-login="Lio123" class="lia-mention lia-mention-user"&gt;Lio123&lt;/a&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. And, if you have any further query do let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 15:36:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Experts-Need-your-support-please/m-p/4771139#M153235</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-07-21T15:36:38Z</dc:date>
    </item>
  </channel>
</rss>

