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
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!

Anonymous
Not applicable

Use Text.BeforeDelimiter, like this

 

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

 

--Nate

idage
Helper I
Helper I

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

 

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.

Top Solution Authors