Forum Discussion
TomLU123
Helper III
8 years agoValidate the Data value with non-numerical characters
Dear experts, I am building a report to validate report to validate the Participant ID stored in the Participant Table. I wish to add a custom column "Participant ID Validation Result" by checki...
- 8 years ago
Column = IF(ISERROR(VALUE([Participant ID])),"Invalid","Valid")
DAX
Greg_Deckler
Community Champion
8 years agoColumn = IF(ISERROR(VALUE([Participant ID])),"Invalid","Valid")
DAX
TomLU123
Helper III
8 years agoHi Greg,
Just a follow up quesion if we use following condition:
If it is all number, the result will be valid. If it contains any non-numerical characters OR blank, it will show invalid.
| Name | Participant ID | Particpant ID Validation Result |
| Smith | 4222T | Invalid |
| David | Invalid | |
| Jim | 5123同 | Invalid |
| Celia | 5922¥ | Invalid |
| Jessica | 52221 | Valid |
In that case, how should we modify the DAX to achieve that?
Many thanks!
- Greg_Deckler8 years ago
Community Champion
I believe:
Column = IF(ISBLANK([Participant ID]) || ISERROR(VALUE([Participant ID])),"Invalid","Valid")