Forum Discussion
Table.Split( ) need to split one flat table into multiple tables
Hi There,
I'm importing an excel sheet that has a list of tables in the format of rows and columns . I found an article that almost solves my impediment using table.Split () . but the function only lets you breakdown the table by a static number of rows, example Table.Split (Source, 2) . how do I use the table.Split while each set of rows is different for each table that I have . I have hundered of rows and tables, so I don't want to manually refrence the main table then use manual step in and drop columns or rows in order to create the desired outcome. here is my example :
Example article i found : https://www.thepoweruser.com/2019/12/19/split-segment-partition-section-your-table-in-power-bi-power-query/
6 Replies
- slorinSuper User
Hi
Group by Value
= Table.Group(Source, {"Value"}, {{"Data", each _}})Stéphane
- memoalkatib1Frequent Visitor
I did that in a previous approach , but never got to how to expand the tables after this step. the grouping leaves me with this "Table" or view:
Value Data
S_SPONSOR_ID Table
S_ORGANIZATION Table
S_ORGTYPE Table
If I just save this as is I get the message : Expression.Error: We cannot convert a value of type Table to type Text.- AlienSxSuper User
memoalkatib1 use slorin_table[Data] to get a list of tables. Table.Split gives the same structure - a list of tables and you're happy with that. What did you want to get in the end?