<?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: Pivot Multiple Columns in Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2193631#M32952</link>
    <description>&lt;P&gt;Please follow steps below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Unpivot all values columns.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Pivot the date column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_0-1637126078193.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/632451i22CF3947215DFB60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_0-1637126078193.png" alt="Vlianlmsft_0-1637126078193.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hZDNCoAwCIDfZecCf+Zq5zoFQffR+79GapcKKwbq5FO+rbW0IkDq0rxNqImAsNdjLc6iEYtkTZD27g22OrPD5wzp5YYvV9zKWjTWMtokwAdsLSlOM//SbuJbn9oYv1FkDLUD3HdjjbwDmt69A9oIZjk/xZUIBh3YDw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Code article" = _t, Division = _t, Date = _t, Consommation = _t, #"Couverture 1%" = _t, #"Livraison Prevue" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Code article", type text}, {"Division", type text}, {"Date", type date}, {"Consommation", Int64.Type}, {"Couverture 1%", Int64.Type}, {"Livraison Prevue", Int64.Type}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Date", "Division", "Code article"}, "Attribute", "Value"),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Unpivoted Other Columns", {{"Date", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Unpivoted Other Columns", {{"Date", type text}}, "en-US")[Date]), "Date", "Value", List.Sum)
in
    #"Pivoted Column"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 17 Nov 2021 05:14:58 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-11-17T05:14:58Z</dc:date>
    <item>
      <title>Pivot Multiple Columns in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2188995#M32901</link>
      <description>&lt;P&gt;Hi everyone&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to pivot this table in power bi and got this result :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abderrazak_0-1636925458531.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/630973i2D53D23A90A1CB59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abderrazak_0-1636925458531.png" alt="abderrazak_0-1636925458531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the original table is a input file : Excel&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abderrazak_1-1636925548490.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/630974iAF7FEC6BD227CFB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abderrazak_1-1636925548490.png" alt="abderrazak_1-1636925548490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 21:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2188995#M32901</guid>
      <dc:creator>abderrazak</dc:creator>
      <dc:date>2021-11-14T21:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Multiple Columns in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2193631#M32952</link>
      <description>&lt;P&gt;Please follow steps below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Unpivot all values columns.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Pivot the date column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_0-1637126078193.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/632451i22CF3947215DFB60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_0-1637126078193.png" alt="Vlianlmsft_0-1637126078193.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hZDNCoAwCIDfZecCf+Zq5zoFQffR+79GapcKKwbq5FO+rbW0IkDq0rxNqImAsNdjLc6iEYtkTZD27g22OrPD5wzp5YYvV9zKWjTWMtokwAdsLSlOM//SbuJbn9oYv1FkDLUD3HdjjbwDmt69A9oIZjk/xZUIBh3YDw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Code article" = _t, Division = _t, Date = _t, Consommation = _t, #"Couverture 1%" = _t, #"Livraison Prevue" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Code article", type text}, {"Division", type text}, {"Date", type date}, {"Consommation", Int64.Type}, {"Couverture 1%", Int64.Type}, {"Livraison Prevue", Int64.Type}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Date", "Division", "Code article"}, "Attribute", "Value"),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Unpivoted Other Columns", {{"Date", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Unpivoted Other Columns", {{"Date", type text}}, "en-US")[Date]), "Date", "Value", List.Sum)
in
    #"Pivoted Column"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 05:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2193631#M32952</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-11-17T05:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Multiple Columns in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2198110#M33009</link>
      <description>&lt;P&gt;thank u so much&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 07:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pivot-Multiple-Columns-in-Power-BI/m-p/2198110#M33009</guid>
      <dc:creator>abderrazak</dc:creator>
      <dc:date>2021-11-19T07:53:40Z</dc:date>
    </item>
  </channel>
</rss>

