Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Dear all,
I am struggling to find a way to extract a number from a text column in PBI.
It is a consecutive number which always starts with 2700... and has 10 digits (eg. 2700102524 as shown in Screenshot below marked in red border) .
The number has no fix position within the text field and can be accompanied either with text or numbers before and after appearance.
The aim is to create an additional column only showing these 10-digit numbers (starting with 2700******) and leaving all other fields blank where no such number can be found.
Does anyone have an idea how to solve this issue with DAX or Power Query?
Solved! Go to Solution.
@dirkkoch You should be able to do this:
Column =
VAR __search = SEARCH("2700",[POT1X],0)
RETURN
IF(__search=0,BLANK(),MID([POT1X],__search,10))
@dirkkoch You should be able to do this:
Column =
VAR __search = SEARCH("2700",[POT1X],0)
RETURN
IF(__search=0,BLANK(),MID([POT1X],__search,10))
User | Count |
---|---|
84 | |
82 | |
66 | |
52 | |
46 |
User | Count |
---|---|
100 | |
49 | |
42 | |
39 | |
38 |