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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Babycakes_00
Helper I
Helper I

Splitting Tables

Hi There


I have a several tables in one form that I need to split via power query

 

What steps do I need to take?

 

Thanks for any help?

 

[Table: 1]     
SubmissionIDFormIDFormNameCreatedDateSubmittedDateUserIDUserName
       
       
[Table: 2]     
SubmissionIDEntryIDNameValue   
       
       
       
[Table: 3]     
SubmissionIDEntryIDIndexGroupRowTypeColumnValue
       
[Table: 4]     
SubmissionIDEntryIDProductFieldColumnValue 
       
       
2 REPLIES 2
Omid_Motamedise
Super User
Super User

Do you have several tables in several queries or all the tables are in one query?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
BA_Pete
Super User
Super User

Hi @Babycakes_00 ,

 

You can create a column in this table which you can use to filter for referenced tables. So your original table, lets call it 'SourceTable' will have a column added like this:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wig5JTMpJtVIwjFXSUUJHsTrRSsGlSbmZxcWZ+XmeLkAxt/yiXDjDLzE3Fch0LkpNLElNcQESQB5YQwmCH1qcWgTWAWKAdYCMxWEbDmGYK42IdKVrXklRJZgFdWJYYk5pKlFWkecwY5Id5pmXkloBpN2L8ksLgHRQfnlIZQE4OPNzSnPz4I4mwnYTkm0PKMpPKU0uAcVjZmpOCqatIANiAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t, Column5 = _t, Column6 = _t, Column7 = _t]),
    repBlankNull = Table.ReplaceValue(Source,"",null,Replacer.ReplaceValue,{"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7"}),
    
// Relevant steps from here ====>
    addTableName = Table.AddColumn(repBlankNull, "TableName", each try if Text.Contains([Column1], "Table:") then [Column1] else null otherwise null),
    fillDownTableName = Table.FillDown(addTableName,{"TableName"})
in
    fillDownTableName

 

 

Which looks like this:

BA_Pete_0-1732777272177.png

 

You can then disable load on this table, but reference it for the split-out tables, something like this:

 

let
    Source = Table.SelectRows(SourceTable, each Text.Contains([TableName], "1"))
in
    Source

 

 

Unfortunately, it's very difficult to do this any more dynamically as Power Query can not spawn new queries within itself.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors