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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JamesGordon
Helper II
Helper II

Filter by delimiter

Hi,

 

I am trying to create a DAX to filter a column of Stock Numbers. The Stock Numbers in the column are in a format

"Wg No : 61034599"

 

All i am after is the 61034599 - am i best to filter by a delimiter or by another function? So far i have been unable to create a DAX that will present just the 61034599

 

Is someone able to suggest a suitable DAX?

 

Thanks in Advance!

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @JamesGordon 

try a column

Column = MID([Stock Numbers],SEARCH(":",[Stock Numbers])+2,LEN([Stock Numbers])-SEARCH(":",[Stock Numbers]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
ahmedoye
Responsive Resident
Responsive Resident

@JamesGordon You can equally write a measure using the CONTAINSTRING Function.

For Example, 

CALCULATE(SUM(ATable[Column]),FILTER(ATable,CONTAINSSTRING(ATable[AnotherColumn], 61034599)))

If this solution works for you, You can also mark it to allow others benefit from it.
az38
Community Champion
Community Champion

Hi @JamesGordon 

try a column

Column = MID([Stock Numbers],SEARCH(":",[Stock Numbers])+2,LEN([Stock Numbers])-SEARCH(":",[Stock Numbers]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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