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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jobf
Helper II
Helper II

Create a column to extract the number

Hello. Look at the table below.

Application
1st application
12th application
3rd application
7th application
11 application


I need to create a new column that extracts only the number from the previous column. Generally I would use LEFT, but as some numbers have different digits, this option would not work. The table would have to look like this:

ApplicationIndex
1st application1
12th application12
3rd application3
7th application7
11 application11

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LeandroDeodato ,Thank you for your quick reply, I will add more.

Hi @jobf ,

The Table data is shown below:

vzhouwenmsft_0-1721279704839.png

Use the following DAX expression to create a column

Column =
VAR _len =
    LEN ( [Application] )
VAR _table =
    ADDCOLUMNS (
        GENERATESERIES ( 1, _len, 1 ),
        "Char", IFERROR ( VALUE ( MID ( [Application], [Value], 1 ) ), BLANK () )
    )
RETURN
    VALUE ( CONCATENATEX ( _table, [Char] ) )

vzhouwenmsft_1-1721279786023.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @LeandroDeodato ,Thank you for your quick reply, I will add more.

Hi @jobf ,

The Table data is shown below:

vzhouwenmsft_0-1721279704839.png

Use the following DAX expression to create a column

Column =
VAR _len =
    LEN ( [Application] )
VAR _table =
    ADDCOLUMNS (
        GENERATESERIES ( 1, _len, 1 ),
        "Char", IFERROR ( VALUE ( MID ( [Application], [Value], 1 ) ), BLANK () )
    )
RETURN
    VALUE ( CONCATENATEX ( _table, [Char] ) )

vzhouwenmsft_1-1721279786023.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

LeandroDeodato
Resolver II
Resolver II

use data transform and split colummn using "space caracter" delimiter, also substitute "ª" caracter to " " 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors