Forum Discussion

Alice601's avatar
Alice601
New Member
6 years ago
Solved

Replace text with 0

Suppose I have a column contains STRING and NUMERIC values. If I want to find all text values, then replace them all with 0. How should I acheive this?
  • parry2k's avatar
    parry2k
    6 years ago

    Alice601 ouch, it should be Number.FromText

     

    I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

     

  • v-chuncz-msft's avatar
    6 years ago

    Alice601 

     

    You may try DAX below as well.

    Column =
    IFERROR (
        VALUE ( 'Table'[Column1] ),
        0
    )