Drill down Rows

Addora

New Member
Joined
Jan 4, 2014
Messages
11
Hello there,

please, I ask for some support at Power BI, I'm new at that fabulous application. I got data from a XML file >> then edit >> as shown I ask for how can I drill or split each line in an autonomy row then fill down the other rows, is that applicable in Power BI, I hope that, please :)


Capture.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

ralliartur

New Member
Joined
Apr 15, 2015
Messages
30
I don't know if i've understood correctly the request, but i can propose this:

My table:

aaa
Header
1 Line1
2 Line2
3 Line3

<tbody>
</tbody>


In power query:

Code:
let    
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Transformation = Table.AddColumn(Source, "ToRows", each Table.PromoteHeaders(Table.FromList(Text.Split([aaa],("#(lf)")))))
in
    Transformation

At the end:

aaaToRows
Header
1 Line1
2 Line2
3 Line3
Table

<tbody>
</tbody>


ToRows column contains:

Header
1 Line1
2 Line2
3 Line3

<tbody>
</tbody>
 
Last edited:
Upvote 0

MarcelBeug

Well-known Member
Joined
Apr 25, 2014
Messages
1,811
My proposal:

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="MultipleLineTable"]}[Content],
    MultipleLineTable = Table.TransformColumnTypes(Source,{{"Column with lines", type text}, {"Other column1", type text}, {"Other column2", type text}}),
    LinesFromText = Table.TransformColumns(MultipleLineTable,{{"Column with lines", Lines.FromText, type text}}),
    Expanded = Table.ExpandListColumn(LinesFromText, "Column with lines")
in
    Expanded
 
Upvote 0

Forum statistics

Threads
1,190,783
Messages
5,982,896
Members
439,805
Latest member
IDarkstarX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top