Forum Discussion

Rsanjuan's avatar
Rsanjuan
Advocate III
9 years ago
Solved

Calculate and ignoring null value

What is the correct syntax for calculating the sum of a column only if another column is not null? For example,   I would only want to calculate the numbers in the second column, where Column...
  • Phil_Seamark's avatar
    9 years ago

    Please try this measure

     

     

    Measure = CALCULATE(
    				SUM(Table1[Column B]),
    				'Table1'[Column A]<> BLANK()
    				)