Forum Discussion

Mk60's avatar
Mk60
Resolver I
1 year ago
Solved

How to fix dax operation error using Values or Format in the string

Would you please show me where/how I can use VALUE or FORMAT in this dax calculation to avoid this error.  My column "F_PROP_DSCR" is text and I tried to change te format to whole number but it does...
  • Bibiano_Geraldo's avatar
    Bibiano_Geraldo
    1 year ago

    All negative numbers start with ' is this expected?

    Eg: '-0999

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Mk60 

     

    From your screenshots, you can see that the data type of the "F_PROP_DSCR" column is "Text", and the reason for the error in the DAX formula is that you can't compare the text with the value.
    I think what you need to do is to clean up your data in Power Query Editor and change the "F_PROP_DSCR" column to numeric type. Then this DAX formula will work successfully.

     

    1. Change the “F_PROP_DSCR” column to a numeric type in the Power Query Editor.

    2. Remove error rows or replace error rows.

    If there are fewer rows of text, you can also choose to manually replace the text value with the correct numeric value.

     

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