Forum Discussion

LogiFons's avatar
LogiFons
Frequent Visitor
2 years ago
Solved

SUMX functions with ISBLANK?

Good evening all,   I am trying to learn DAX, but have now an easy problem wherefor i can't fond the solution.   I made below measure for a card visual.   Measure punten = sumx(     DISTINCT...
  • rubinboer's avatar
    2 years ago

    hi LogiFons 

     

    you can wrap the expression with the coalesce function, e.g :

    Some Total = Coalesce( SUMX( SomeTable,SomeTable[SomeColumn] ), 0 )
    or you can add a 0 to the expression e.g :
    Sum Total = SUMX( SomeTable,SomeTable[SomeColumn] ) + 0
     so with a condition it would look lie :
    Some Total 2 = Coalesce( SUMX( FILTER( SomeTable, SomeTable[AnotherColumn] = "2" ), SomeTable[SomeColumn]), 0 )