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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Validate

Hello

 

How can I create a measure to validate the column?

 

If CODE is a number return Valid and if alphanumeric  return Not Valid.

 

I want to achieve this through the measure, is it possible?

 

Code
123456789
342424224
24243423FEF3
SD123133131
21231313
EFWE333324

 

 

1 ACCEPTED SOLUTION
freginier
Super User
Super User

Why do you want to use a Measure ? 

I think you need to create a calculated column to define if it's valid or not and then do calculation with measure

Column = IF( ISERROR(VALUE('Table'[Column1])),"not valid","valid")

 

View solution in original post

1 REPLY 1
freginier
Super User
Super User

Why do you want to use a Measure ? 

I think you need to create a calculated column to define if it's valid or not and then do calculation with measure

Column = IF( ISERROR(VALUE('Table'[Column1])),"not valid","valid")

 

Helpful resources

Announcements
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.