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
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
Super User
Super User

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks smoupre, it works great!

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.

Top Solution Authors
Top Kudoed Authors