Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
TestTest --ignore
123 123
01/01/1966 --ignore
569 569
Solved! Go to Solution.
Use the following :
NumericOnly =
VAR Result = VALUE([YourColumnName]) // Attempts to convert to number.
RETURN
IFERROR(Result, BLANK()) // Returns BLANK if conversion fails
Use the following :
NumericOnly =
VAR Result = VALUE([YourColumnName]) // Attempts to convert to number.
RETURN
IFERROR(Result, BLANK()) // Returns BLANK if conversion fails
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
41 | |
40 |