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
pawelj795
Post Prodigy
Post Prodigy

Find value in column

Hi, 
I have column like below.
image.png

I want to find customer number (e.g.39965929 -> in above example).

How to do this?

Maybe use FIND() function?

5 REPLIES 5
amitchandak
Super User
Super User

Check :https://docs.microsoft.com/en-us/dax/search-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Ok, but I need to find value between fourth and fifth space.


How to do this?

Hi @pawelj795 ,

 

You need a calculated column as below:

 

Column = 
var a = SEARCH(" ",'Table'[Column1])
var b = SEARCH(" ",'Table'[Column1],a+1)
var c = SEARCH(" ",'Table'[Column1],b+1)
var d =SEARCH(" ",'Table'[Column1],c+1)
var e =SEARCH(" ",'Table'[Column1],d+1)
Return
MID('Table'[Column1],d+1,e-d)

 

 

And you will see:

Annotation 2020-01-31 154236.png

 

For the related .pbix file,pls click here.

 

 
Best Regards,
Kelly

@v-kelly-msft 

It's not working in my file, I really don't know why ..
image.png

@v-kelly-msft 

I think I know what creating problem.

I have some rows without 5th space.

Is there any solution to get round this?
image.png

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