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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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