<?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: Need help to manipulate this table correctly in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3998090#M130862</link>
    <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can highly recommend this book:&amp;nbsp;&lt;A title="The Definitive Guide to Power Query (M): Mastering complex data transformation with Power Query" href="https://www.packtpub.com/en-us/product/the-definitive-guide-to-power-query-m-9781835089729" target="_self"&gt;"The Definitive Guide to Power Query (M)&lt;/A&gt;"&lt;BR /&gt;Authors:&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="69163" data-lia-user-login="Rickmaurinus" class="lia-mention lia-mention-user"&gt;Rickmaurinus&lt;/a&gt; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205166" data-lia-user-login="m_dekorte" class="lia-mention lia-mention-user"&gt;m_dekorte&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards from Germany&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 11:25:18 GMT</pubDate>
    <dc:creator>ManuelBolz</dc:creator>
    <dc:date>2024-06-18T11:25:18Z</dc:date>
    <item>
      <title>Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988017#M130376</link>
      <description>&lt;P&gt;Hello dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My database extract looks like this:&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;This consists of the dimensions:&lt;/P&gt;&lt;P&gt;Vergabe ID&lt;/P&gt;&lt;P&gt;Kurzbezeichnung&lt;/P&gt;&lt;P&gt;Kostenjahraufteilung1,2,3 etc. (could be infinite) (each Kostenjahraufteilung and number is a separate column)&lt;BR /&gt;Kostenjahraufteilung = Year&lt;/P&gt;&lt;P&gt;Kostenaufteilung1,2,3, etc. (could be infinite)&amp;nbsp;(each Kostenaufteilung and number is a separate column)&amp;nbsp;&lt;BR /&gt;Kostenaufteilung = Cost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i want it to look like this, so I can pivot the data through excel:&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 tried so much already and i just cant seem to find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 08:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988017#M130376</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-12T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988128#M130379</link>
      <description>&lt;LI-CODE lang="markup"&gt;let
    Source = your_table,
    to_list = Table.ToList(
        Source,
        (w) =&amp;gt; List.TransformMany(
            {w},
            (x) =&amp;gt; List.Zip(List.Split(List.Skip(x, 2), (Table.ColumnCount(Source) - 2) / 2)),
            (x, y) =&amp;gt; {x{0}, x{1}} &amp;amp; y
        )
    ),
    to_table = Table.FromList(List.Combine(to_list), (x) =&amp;gt; x, {"Vergabe ID", "Kurzbezeichnung", "Year", "Cost"})
in
    to_table&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:08:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988128#M130379</guid>
      <dc:creator>AlienSx</dc:creator>
      <dc:date>2024-06-12T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988130#M130380</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;ich habe dir im folgenden mal eine Lösung erstellt. Wenn du Rückfragen hast, melde dich gerne. Du musst bei meiner Lösung deine Daten im &lt;EM&gt;&lt;STRONG&gt;SOURCE&lt;/STRONG&gt; &lt;/EM&gt;Schritt ersetzten.&lt;BR /&gt;&lt;BR /&gt;If my post helped you, please give me a &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;FONT color="#117865"&gt;&lt;STRONG&gt;kudos&lt;/STRONG&gt;&lt;/FONT&gt; and mark this post with &lt;FONT color="#117865"&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("LcnBDcAgDATBXvxOJINtTGpB9N9GHDav0d6tJV273aoul5hmFrU4BAz4vwnPwRRa0UKpg4FDwICE+bH3Cw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Kurzbezeichnung = _t, VergabeID = _t, KOSTENJAHR_AUFTEILUNG1 = _t, KOSTENJAHR_AUFTEILUNG2 = _t, KOSTENJAHR_AUFTEILUNG3 = _t, KOSTENJAHR_AUFTEILUNG4 = _t, KOSTENJAHR_AUFTEILUNG5 = _t, KOSTENJAHR_AUFTEILUNG6 = _t, KOSTENJAHR_AUFTEILUNG7 = _t, KOSTENJAHR_AUFTEILUNG8 = _t, KOSTEN_AUFTEILUNG1 = _t, KOSTEN_AUFTEILUNG2 = _t, KOSTEN_AUFTEILUNG3 = _t, KOSTEN_AUFTEILUNG4 = _t, KOSTEN_AUFTEILUNG5 = _t, KOSTEN_AUFTEILUNG6 = _t, KOSTEN_AUFTEILUNG7 = _t, KOSTEN_AUFTEILUNG8 = _t]),
    KOSTENJAHRTable = Table.SelectRows(Table.UnpivotOtherColumns(Source, {"Kurzbezeichnung", "VergabeID"}, "Attribute", "Year"), each Text.Contains([Attribute], "KOSTENJAHR_")),
    KOSTENJAHRReplace = Table.ReplaceValue(KOSTENJAHRTable,"KOSTENJAHR_AUFTEILUNG","",Replacer.ReplaceText,{"Attribute"}),
    KOSTENJAHRType = Table.TransformColumnTypes(KOSTENJAHRReplace,{{"Attribute", Int64.Type}}),
    KOSTENTable = Table.SelectRows(Table.UnpivotOtherColumns(Source, {"Kurzbezeichnung", "VergabeID"}, "Attribute", "Cost"), each Text.Contains([Attribute], "KOSTEN_")),
    KOSTENReplace = Table.ReplaceValue(KOSTENTable,"KOSTEN_AUFTEILUNG","",Replacer.ReplaceText,{"Attribute"}),
    KOSTENType = Table.TransformColumnTypes(KOSTENReplace,{{"Attribute", Int64.Type}}),
    Merged = Table.NestedJoin(KOSTENJAHRType, {"Attribute"}, KOSTENType, {"Attribute"}, "KOSTENType", JoinKind.Inner),
    Expanded = Table.ExpandTableColumn(Merged, "KOSTENType", {"Cost"}, {"Cost"}),
    Type = Table.TransformColumnTypes(Expanded,{{"Year", Int64.Type}, {"Cost", Currency.Type}})
in
    Type&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Best regards from Germany&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988130#M130380</guid>
      <dc:creator>ManuelBolz</dc:creator>
      <dc:date>2024-06-12T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988148#M130381</link>
      <description>&lt;P&gt;Hello i get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression.Error: The number is outside the valid range of a 32-bit integer value.&lt;BR /&gt;Details:&lt;BR /&gt;8,5&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988148#M130381</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-12T09:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988151#M130382</link>
      <description>&lt;P&gt;Hello, works - **bleep** you are good&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets suppose depending on the database extract I do i can have Kostenaufteilung and Kostenaufteilung pro Jahr up to 100. Kostenaufteilung 1..2, 3,....100 How can i scale the dimensions infinitely without blowing up the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988151#M130382</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-12T09:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988155#M130383</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made my code scalable, so no further adjustments should be necessary. However, it is actually not recommended to import a table with 1.000+ columns and only one row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If my post helped you, please give me a &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;FONT color="#117865"&gt;&lt;STRONG&gt;kudos&lt;/STRONG&gt;&lt;/FONT&gt; and mark this post with &lt;FONT color="#117865"&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;Best regards from Germany&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988155#M130383</guid>
      <dc:creator>ManuelBolz</dc:creator>
      <dc:date>2024-06-12T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988179#M130384</link>
      <description>&lt;P&gt;Yes, i know that this is suboptimal. However, this is how i get it out from the database &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for helping me. Would it mind you if I comment on this post again next week (since i am on vaccation already). Trying it out with more dimensions and "VergabeIDs"? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988179#M130384</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-12T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988198#M130385</link>
      <description>&lt;P&gt;Of course you can get in touch again next week. Which database is it? Maybe the data can be pre-transformed using SQL?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards from Germany&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988198#M130385</guid>
      <dc:creator>ManuelBolz</dc:creator>
      <dc:date>2024-06-12T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988211#M130386</link>
      <description>&lt;P&gt;Na sadly not SQL. It is called ELO Datenbank&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988211#M130386</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-12T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988230#M130387</link>
      <description>&lt;P&gt;Okay,&lt;BR /&gt;&lt;BR /&gt;as long as the current one we have found a solution. However, as soon as the system becomes “too slow” you should think about another solution. As far as I know, “ELO” has either a Microsoft SQL or PostgreSQL database in the backend. So maybe we can already work with SLQ here. Another option would be to retrieve the data using dataflows. I would generally always recommend this option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish you a nice vacation&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988230#M130387</guid>
      <dc:creator>ManuelBolz</dc:creator>
      <dc:date>2024-06-12T09:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988281#M130389</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;&amp;nbsp;my code works as long as your data start with Vergabe ID and Kurzbezeichnung (only 2 columns) and equal number of&amp;nbsp;&lt;SPAN&gt;Kostenjahraufteilung and&amp;nbsp;Kostenaufteilung columns. Looks like you have 19 columns in your dataset.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 10:08:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988281#M130389</guid>
      <dc:creator>AlienSx</dc:creator>
      <dc:date>2024-06-12T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988395#M130396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;,&amp;nbsp;another solution here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can edit _ColumnsForGrouping_ step if you have more columns which you want to group by. Change order if you want to have different order in final table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("LcnBDcAgDATBXvxOJINtTGpB9N9GHDav0d6tJV273aoul5hmFrU4BAz4vwnPwRRa0UKpg4FDwICE+bH3Cw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Kurzbezeichnung = _t, VergabeID = _t, KOSTENJAHRAUFTEILUNG1 = _t, KOSTENJAHRAUFTEILUNG2 = _t, KOSTENJAHRAUFTEILUNG3 = _t, KOSTENJAHRAUFTEILUNG4 = _t, KOSTENJAHRAUFTEILUNG5 = _t, KOSTENJAHRAUFTEILUNG6 = _t, KOSTENJAHRAUFTEILUNG7 = _t, KOSTENJAHRAUFTEILUNG8 = _t, KOSTENAUFTEILUNG1 = _t, KOSTENAUFTEILUNG2 = _t, KOSTENAUFTEILUNG3 = _t, KOSTENAUFTEILUNG4 = _t, KOSTENAUFTEILUNG5 = _t, KOSTENAUFTEILUNG6 = _t, KOSTENAUFTEILUNG7 = _t, KOSTENAUFTEILUNG8 = _t]),
    _ColumnsForGrouping_ = {"VergabeID", "Kurzbezeichnung"},

    fn_TransformToColumns = 
        (myTable as table)=&amp;gt;
        let
            // Detail = GroupedRows{0}[All],
            Detail = myTable,
            ColNames = List.Buffer(Table.ColumnNames(Detail)),
            Transform = List.TransformMany(
                Table.ToRows(Detail),
                each List.Split(List.Skip(_, List.Count(_ColumnsForGrouping_)), List.Count(List.Select(ColNames, (w)=&amp;gt; Text.StartsWith(w, "KOSTENJAHR", Comparer.OrdinalIgnoreCase)))),
                (x,y)=&amp;gt; y ),
            ToTable = Table.FromColumns(Transform, {"Year", "Cost"})
        in
            ToTable,
            
    GroupedRows = Table.Group(Source, _ColumnsForGrouping_, {{"All", each fn_TransformToColumns(_), type table}}),
    ExpandedAll = Table.ExpandTableColumn(GroupedRows, "All", {"Year", "Cost"}, {"Year", "Cost"})
    
    in ExpandedAll&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Jun 2024 11:23:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3988395#M130396</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-06-12T11:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995467#M130761</link>
      <description>&lt;P&gt;Thank you works too. Just got back from vaccation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Which sources would you recommend in order to learn power query? Have you got a recommendation for me? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995467#M130761</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-17T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995470#M130763</link>
      <description>&lt;P&gt;Ty &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Do you have btw any recommendation on where to learn advanced power query stuff that you did? Best regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995470#M130763</guid>
      <dc:creator>Goatsu</dc:creator>
      <dc:date>2024-06-17T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995485#M130764</link>
      <description>&lt;P&gt;&lt;A href="https://www.xelplus.com/course/excel-power-query/" target="_self"&gt;This one&lt;/A&gt; is good.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3995485#M130764</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-06-17T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to manipulate this table correctly</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3998090#M130862</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758471" data-lia-user-login="Goatsu" class="lia-mention lia-mention-user"&gt;Goatsu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can highly recommend this book:&amp;nbsp;&lt;A title="The Definitive Guide to Power Query (M): Mastering complex data transformation with Power Query" href="https://www.packtpub.com/en-us/product/the-definitive-guide-to-power-query-m-9781835089729" target="_self"&gt;"The Definitive Guide to Power Query (M)&lt;/A&gt;"&lt;BR /&gt;Authors:&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="69163" data-lia-user-login="Rickmaurinus" class="lia-mention lia-mention-user"&gt;Rickmaurinus&lt;/a&gt; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205166" data-lia-user-login="m_dekorte" class="lia-mention lia-mention-user"&gt;m_dekorte&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards from Germany&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;STRONG&gt;Manuel Bolz&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;🟦&lt;A title="Follow me on LinkedIn" href="https://www.linkedin.com/in/manuelbolz/" target="_blank" rel="noopener"&gt;Follow me on &lt;STRONG&gt;L&lt;/STRONG&gt;inked&lt;STRONG&gt;I&lt;/STRONG&gt;n&lt;/A&gt;&lt;BR /&gt;🟨&lt;A title="How to Get Your Question Answered Quickly" href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;BR /&gt;🟩&lt;A title="Fabric Community Conference" href="https://www.sharepointeurope.com/european-microsoft-fabric-community-conference/" target="_blank" rel="noopener"&gt;Fabric Community Conference&lt;/A&gt;&lt;BR /&gt;🟪&lt;A title="Solutions on Github" href="https://github.com/ManuelBolz/Fabric-Community-Helper" target="_blank" rel="noopener"&gt;My Solutions on Github&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 11:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Need-help-to-manipulate-this-table-correctly/m-p/3998090#M130862</guid>
      <dc:creator>ManuelBolz</dc:creator>
      <dc:date>2024-06-18T11:25:18Z</dc:date>
    </item>
  </channel>
</rss>

