Forum Discussion
TestTest17891
Advocate I
2 years agoGet only numeric values from a column
I want to create a calculated column in DAX that filters out only the numeric values from a column that contains numbers, strings, and dates.... Example : MyColumn CalculatedColumn
TestT...
- 2 years ago
Use the following :
NumericOnly = VAR Result = VALUE([YourColumnName]) // Attempts to convert to number. RETURN IFERROR(Result, BLANK()) // Returns BLANK if conversion fails
AmiraBedh
Super User
2 years agoUse the following :
NumericOnly =
VAR Result = VALUE([YourColumnName]) // Attempts to convert to number.
RETURN
IFERROR(Result, BLANK()) // Returns BLANK if conversion fails