The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a text string column that begins with 3 numbers followed by letters for some of the items in the column. I want to look for anything in that column that starts with a number and if it does, I want to return a value and if it doesn't start with a number, then I want to return another value.
Solved! Go to Solution.
Hi @DMB90
Thanks for the reply from @Ahmedx , please allow me to provide another insight:
First of all, I create a set of sample:
Then add a calculate column:
Column =
IF ( IFERROR ( VALUE ( MID ( 'Table'[Column1], 1, 3 ) ), 1 ) = 1, "NOT", "YES" )
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
or try this code
Thanks! This worked!
pls try this
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
78 | |
66 | |
52 | |
51 |
User | Count |
---|---|
121 | |
116 | |
77 | |
64 | |
63 |