Forum Discussion
Anonymous
6 years agoNot applicable
Data Quality rules
Hello all I am building Data Quality dashboard based on Excel datasets. I have a column and I need to apply these two rules on it and check which row entry satisfy these rules and which doesn't. ...
- Anonymous6 years ago
Hi Anonymous ,
DAX function CONTAINSSTRING() can help.
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
See the following example.
Column = IF ( CONTAINSSTRING ( 'Table'[Column1], " " ) = TRUE () && CONTAINSSTRING ( 'Table'[Column1], "!" ) = FALSE () && CONTAINSSTRING ( 'Table'[Column1], "@" ) = FALSE () && CONTAINSSTRING ( 'Table'[Column1], "#" ) = FALSE (), 1, 0 )Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi Anonymous ,
DAX function CONTAINSSTRING() can help.
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
See the following example.
Column =
IF (
CONTAINSSTRING ( 'Table'[Column1], " " ) = TRUE ()
&& CONTAINSSTRING ( 'Table'[Column1], "!" ) = FALSE ()
&& CONTAINSSTRING ( 'Table'[Column1], "@" ) = FALSE ()
&& CONTAINSSTRING ( 'Table'[Column1], "#" ) = FALSE (),
1,
0
)
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.