Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Trying to remove characters from field

Hello everyone. I am new to the forum. I have been working in Power BI for about 6 months and really starting to get into the deeper end of the pool here.  I have looked through the forums and not q...
  • Duia's avatar
    4 years ago

    Hi Anonymous ,
    Here are the steps you can follow:
    There are two methods here:
    Method 1:
    1. Create calculated column.

     

    Column =
    var _1=
    VALUE(
    MID(
    'Table'[USD],
    2,6))
    return
    FORMAT(_1,"Fixed")

     

    Result:

    But the format is Text, because the results obtained by using the Format function are in Text format
    https://docs.microsoft.com/en-us/dax/format-function-dax

    Method 2:
    1. Create calculated column.

     

    Value =
    VALUE(
    MID(
    'Table'[USD],
    2,6))

     

    2. Click on the newly created new column, select Column tools - 2 - the value will have two decimal points
    This is the numeric format

    If you need pbix, please click here.

    Trying to remove characters from field.pbix

     

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