Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Syndicate_Admin
Administrator
Administrator

power query, split based on column name

 

Hello all, 

 in power query, there is a column similar to blue table as shown below. Is it possible to change blue colored colored one to orange colored columns ? if possible, How to split based on column name?

 

 

 

 

Thanks advance

1 REPLY 1
AlienSx
Super User
Super User

Hello, Krishna09

let
    source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    headers = Splitter.SplitTextByDelimiter("/")(Table.ColumnNames(source){0}),
    data = List.Repeat({Table.ToColumns(source){0}}, List.Count(headers)),
    tbl = Table.FromColumns(data, headers)
in
    tbl

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors