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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Thim
Resolver V
Resolver V

Getting Data from one table to another with DirectQuery

Hi All.

 

Thanks for reading. 🙂

 

I am currently trying to Get some data moved from one table to another while all data is connected as DirectQuery.
Issue:

The value i in order to Merge the two tables is combined with other text.

 


Example:
Table 1

KeyNumberOfStitches
AFA455010.000

Table 2

OrdreDescriptionQty.
1AFA4550: amazing stuff50

I need the NumberOfStitches as its own column on Table 2.

First issue is getting the Keu value seperated to its own coloumn in table 2 in order to connect the two tables.

The key will always end with the first : on the Description, so the rule is fairly simple.

I don't think i can just use MID in DAX as this would later require me to use LOOKUPVALUE, but this is not avaliable with DirectQuery.
Same issues goes when trying to split be delimiter in Quiry Editor. This is also not avaliabe with Direct Query.
Also it wont work doing it as a meassure using Dax, as i will need to do some more calculations afterwards that is not really possible unless i get the data moved together.

Hope it makes sence what i am trying to do.

Any help is strongly appreciated. 🙂

Quick edit:

Tables are suppose to look like this. 😄

Thim_0-1680694321626.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Thim , better to bring key as separated from DB in table 2 and create 1-M join

if this one to many relationships then related can work

https://youtu.be/aA4ROG9dg8A

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Thim
Resolver V
Resolver V

Cheers. 🙂

amitchandak
Super User
Super User

@Thim , better to bring key as separated from DB in table 2 and create 1-M join

if this one to many relationships then related can work

https://youtu.be/aA4ROG9dg8A

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.