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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors