How to create DAX measure to sum up only numeric values? Suppose we have simple sample data as below.
I thought that this code might do the job, but it failed.
m1 = IF( MAX(Table1[category]) = "apples", SUM(Table1[units]) , BLANK() )
When I try to add this measure to the table, which has applied filters for apples and plums only, I get the error message:
I need something that will apply filter first, seeding out text values, then do the summing up on numeric values only.