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
bpatterson
New Member

Split columns with delimited based on records from another table

Hello,

I got two tables one with the values that has delimited characters acsending numbers and the second table with the colunms names and their delimited characters, how can I match the columns names and pull only their data for each column based on the delimited and their id. Some values could have 1 to 6 different columns depending on the data. I have attached some examples below to explain it better. 

 

 

data table

idvalues
1031A12ABOVE3333
10541055Above6Subject
106116

 

reference table

idtsc-reftsc-ordersdesc
10543Score
10552Level
10561Subject
10311subject
10322level
10333scale score
10611Score

 

 

Results

idsubjectlevelscore
103A1Above333
105SubjectAbove105
106  16

 

I would like to pull any word score and get their tsc-ref to get the value data only the score position or any other fields. Does anyone has any suggestions? 

Thank you

Brian

1 ACCEPTED SOLUTION

Hi @bpatterson one of posdible solution is using column by example

https://learn.microsoft.com/en-us/power-query/column-from-example





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

3 REPLIES 3
some_bih
Super User
Super User

Hi @bpatterson create relatioship between tables like on link below and after that create visual as you need (table / matrix).

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hello, 

Thank you for the information, I do have all the relationships setup and the matrix table would work but it does not break up the values into columns. How would I be able to split up the values into columns? For example: column/field value 41055Above6Subject. 

Column 4Column 5Column 6
105AboveSubject

 

Thank you again

Brian

Hi @bpatterson one of posdible solution is using column by example

https://learn.microsoft.com/en-us/power-query/column-from-example





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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