Forum Discussion

NISH72's avatar
NISH72
Icon for Helper IV rankHelper IV
6 years ago

Adding numbers in column by ignoring text

Hello,
I have the following column
Sales
56
43
N/a
22
N/a
I want to add the numeric values in this column but ignore the text values. Is there any dax for these. I want to create a measure for this calculation. Thank you

5 Replies

  • NISH72 you can add a calculate column using following DAX and then do sum on this new column

     

    Sales col to sum = 
    IFERROR ( VALUE ( Sales[Sales] ), 0 ) 

     

    • NISH72's avatar
      NISH72
      Icon for Helper IV rankHelper IV
      Thanks for reply. Actually I don't want to add a new column the numeric values should be added in the same column ignoring the text. It should look like this after sum
      Sales
      54
      N/a
      67
  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity Support

    Hi NISH72 

    Is the last column your expected result of this problem?

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.