Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
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
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 6 | |
| 5 |