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
idage
Helper I
Helper I

Cancel last characters

Thank you very much in advance for your help!!

My issue i that:

 

in column Level i have values like this:

 

Level
1.1.1.1.1.3.10
1.1.1.1.1.4
1.1.1.1.1.4.1
1.1.1.1.1.5
1.1.1.1.1.6
1.1.1.1.1.7
1.1.1.1.1.8
1.1.1.1.1.8.1
1.1.1.1.1.8.2
1.1.1.1.1.8.3

 

 

and i need to generate a new column without last number and comma:

Level
1.1.1.1.1.3
1.1.1.1.1
1.1.1.1.1.4
1.1.1.1.1
1.1.1.1.1
1.1.1.1.1
1.1.1.1.1
1.1.1.1.1.8
1.1.1.1.1.8
1.1.1.1.1.8
1.1.1.1.1.8

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi,

Extract text before last comma

Text.BeforeDelimiter([Level], ".", {0, RelativePosition.FromEnd})

Stéphane 

View solution in original post

4 REPLIES 4
slorin
Super User
Super User

Hi,

Extract text before last comma

Text.BeforeDelimiter([Level], ".", {0, RelativePosition.FromEnd})

Stéphane 

FANTASTC!!!!!Really Really thank you!

watkinnc
Super User
Super User

Use Text.BeforeDelimiter, like this

 

Table.AddColumn(PriorStepOrTableName, "NewColumnName", each Text.BeforeDelimiter([Level], ".", {0, RelativePosition.FromEnd}))

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
idage
Helper I
Helper I

COULD YOU PLEASE HELP?? I tried many ways without results...

 

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