cancel
Showing results for 
Search instead for 
Did you mean: 
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
Solution Specialist
Solution Specialist

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
Solution Specialist
Solution Specialist

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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors