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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mxblaise
Regular Visitor

Modify data before making a relation

Hi,

 

I am really new to Power BI and it seems really promising!

I would like to make a relationship between two fields which are in fact Serial Numbers :

- First is in a sqlite DB and is of type AA0000

- Second is in a Excel file and is of type AA0000-X

 

To be able to make the link between both, I would like Power BI to ignore the last two caracters coming from the Excel file that are in fact useless.

 

Any idea how to deal with it?

 

I would like as much as possible not to modify the Excel file since these are raw data extracted from another SAP DB periodicaly. It contains only text, no formulae. Otherwhise, I would have just put =LEFT(...;6) in the excel file.

 

Thanks a lot,

 

Max

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

In query editor, click on your column and go to the Transform tab in the ribbon. In the middle there is a section called Text Column and in there is a drop down for Extract. You can extract first characters, characters before delimiter, etc. If you want, you could copy the copy and then do that so that you preserve the original column. But, sounds like you wouldn't need to do that.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

In query editor, click on your column and go to the Transform tab in the ribbon. In the middle there is a section called Text Column and in there is a drop down for Extract. You can extract first characters, characters before delimiter, etc. If you want, you could copy the copy and then do that so that you preserve the original column. But, sounds like you wouldn't need to do that.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks smoupre, it works great!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.