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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Andybr
Frequent Visitor

Address find number

Hi,

 

I have an 'address 1' column with values as follows:

 

1 Main Street

100 Main Road

Avenue

Boulevard

 

I want to be able to flag the addresses which don't start with a number, so 'Avenue & Boulevard' above - can this be done using DAX?

 

Thanks,

 

Andy

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Andybr ,
 
You can create a Calculated Column.
 
Assuming that the address in Text DataType
 
Column = IF(LEFT('Table'[Name],1) IN {"1","2","3","4","5","6","7","8","9","0"},"starts with Number","does not start with number")
 
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

az38
Community Champion
Community Champion

Hi @Andybr 

create a column

Column = IF(ISERROR(VALUE(LEFT([Address 1],1))), TRUE(), FALSE())

and filter by Column = True


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

Appreciated - thanks @az38 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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