Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
2 years ago
Solved

DAX NEW 'RATE' COLUMN

Good day Community, I hope you have a great year,

I have a table in Power BI that within its columns are 'quota', 'term', 'amount'.

I'm trying to create a new column to find out the interest rate using the RATE function, however it always throws me the following error: An argument from the 'RATE' function has the wrong data type or the result is too large or too small.

I have validated and all the rows have your data and in whole number format

  • AlexisOlson's avatar
    AlexisOlson
    2 years ago

    I tested the formula on the first few rows and it works:

     

    I think you may have some bad data somewhere in the table. Try using IFERROR to find it.

    tasa = IFERROR ( RATE ( BASE_FINAL[plazo], - BASE_FINAL[cuota], - BASE_FINAL[monto] ), -1 )

    Filter the column to see which rows evaluate to -100%. These are the troublemakers.

3 Replies

      • AlexisOlson's avatar
        AlexisOlson
        Super User

        I tested the formula on the first few rows and it works:

         

        I think you may have some bad data somewhere in the table. Try using IFERROR to find it.

        tasa = IFERROR ( RATE ( BASE_FINAL[plazo], - BASE_FINAL[cuota], - BASE_FINAL[monto] ), -1 )

        Filter the column to see which rows evaluate to -100%. These are the troublemakers.