Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Problem with splitting and formatting a text value

Hi there,

I want to replace the Full Stoptext in a text value with a comma, and roundup the numbers behind the comma by using DAX, but I don't know how...

 

Here is the text that I want to change, which is a measure:

 

608293.239524996T

 

The result that I want:

 

608293,24T

 

Thanks a lot,

 

  • HI Anonymous 

    You can use the below syntax to add a column.

    Column = FORMAT(VALUE(SUBSTITUTE(Table1[a], "T", "")), ".00") & "T"


    Regards,
    Mariusz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Mariusz's avatar
    Mariusz
    Community Champion

    HI Anonymous 

    You can use the below syntax to add a column.

    Column = FORMAT(VALUE(SUBSTITUTE(Table1[a], "T", "")), ".00") & "T"


    Regards,
    Mariusz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you!