+ Reply to Thread
Results 1 to 17 of 17

Transpose table in Power Query multiple date columns

Hybrid View

  1. #1
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Transpose table in Power Query multiple date columns

    That should make it much easier then - see attached example. The M code is just:

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"ORDER#", "IP", "Line No.", "STYLE", "PO", "COLOR", "ORDER QUANTITY", "Unit Value $", "Rejection"}, "Attribute", "Value"),
        #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Department", "Type", "Index"}),
        #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Department", type text}, {"Type", type text}, {"Index", Int64.Type}}),
        #"Pivoted Column" = Table.Pivot(#"Changed Type1", List.Distinct(#"Changed Type1"[Type]), "Type", "Value"),
        #"Removed Columns" = Table.RemoveColumns(#"Pivoted Column",{"Index"})
    in
        #"Removed Columns"
    Attached Files Attached Files
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] [Power Query] How to filter 0 from two columns in power query editor in one step?
    By daliye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2023, 09:44 PM
  2. Replies: 4
    Last Post: 07-04-2023, 10:36 AM
  3. Power query Date Table function
    By Dicken in forum Office 365
    Replies: 7
    Last Post: 11-10-2022, 12:53 PM
  4. [SOLVED] Trying to create Date Table in power query using M
    By Dicken in forum Office 365
    Replies: 3
    Last Post: 11-11-2021, 10:21 AM
  5. Power Query - Transpose Specific Columns
    By keith6292 in forum Excel General
    Replies: 1
    Last Post: 07-20-2021, 04:01 PM
  6. [SOLVED] Data from multiple columns into one table by date query
    By MattExcelLearner in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2020, 07:15 AM
  7. [SOLVED] Transpose from columns to rows with Power Query
    By lofgren in forum Excel General
    Replies: 9
    Last Post: 06-21-2020, 10:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1