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
Anonymous
Not applicable

Extracting Information from one column to a new column

I am wondering if this is possible, or if it's just wishful thinking.

 

I have a column that contains paragraphs of information in each cell. They are descriptions of reports. But contained within each of these descriptions (and there are hundreds of them), are report numbers like: "JS 93498390" or "JS #93498390" or "JS#93498390" Every report ID has the letter JS in front, followed by a # or a space or no space and then 8 digits like the examples shown.

 

I want to extract them all into a new column. I can separate them and sort them from there. Is this possible? What would happen if there were multiple report numbers contained within each line item?

 

ex0dus2020_0-1664417047997.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Here I suggest you to create a calculated column by below code.

Extracted Report =
VAR _Step1 =
    RIGHT (
        'Table'[Description],
        LEN ( 'Table'[Description] ) - FIND ( "JH", 'Table'[Description], 1, 0 ) + 1
    )
VAR _Step2 =
    LEFT ( _Step1, FIND ( ".", _Step1, 1, 0 ) - 1 )
RETURN
    _Step2

Result is as below.

RicoZhou_0-1664508995485.png

 

Best Regards,
Rico 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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Here I suggest you to create a calculated column by below code.

Extracted Report =
VAR _Step1 =
    RIGHT (
        'Table'[Description],
        LEN ( 'Table'[Description] ) - FIND ( "JH", 'Table'[Description], 1, 0 ) + 1
    )
VAR _Step2 =
    LEFT ( _Step1, FIND ( ".", _Step1, 1, 0 ) - 1 )
RETURN
    _Step2

Result is as below.

RicoZhou_0-1664508995485.png

 

Best Regards,
Rico Zhou

 

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

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