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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Split table into another table based on column value

I have a table that is really messy.

Column 1 has the values Test 1 and Test 2 among others and i want to split this table to another table so every row after Test 2 goes to a new table. How do i do that?

6 REPLIES 6
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can create a new calculated table.

Please try the DAX below:

Table 2 = CALCULATETABLE('Table','Table'[id]="Test2")

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Anonymous
Not applicable

Thank you for your answer but this is not exactly what i am looking for.

 

As i said the table is messy. So in column 1 the header (Test 1) is not actually a header but is inside the table as there are some stuff above it. Below this there is the same thing with Test 2 as the header. What i basically want to do is get every value after test 2.

 

Irrelevant stuffIrrelevant stuffIrrelevant stuffIrrelevant stuffIrrelevant stuff 
Test 1     
 # Header 1 # Header 2 #Header 3 # Header 4Header 5
All Markets - TOTALS / AVERAGESvaluevaluevaluevaluevalue
United Kingdomvaluevaluevaluevaluevalue
United Statesvaluevaluevaluevaluevalue
Canadavaluevaluevaluevaluevalue

 

@V-lianl-msft 

Hi @Anonymous ,

 

See if this article can help you:split-segment-partition-section-your-table-in-power-bi-power-query 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

 

I'm sorry, but I really can't understand the sample data you sent.Could you please show me the picture of the data ?(Please mask any sensitive data before uploading)

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

1.PNG

 

so i want everything from flight and down to be in a different table.

@V-lianl-msft 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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