Forum Discussion

Dajakda's avatar
Dajakda
Regular Visitor
1 year ago
Solved

Error en fórmula DAX

Hola, necesito que me ayuden con algo por favor, estoy intentando mostrar el resultado de un divide entre dos medidas que creé pero el valor porcentual siempre me sale 100%. Muchas gracias

 

 

  • Hola Dajakda ,
    ¿Editaste el formato de la medida que solías tener número decimal y decimal 2 como se ve en la imagen? Porque según tu cálculo, el valor es 0,55. Si el valor decimal es 0 en lugar de 2, lo percibe como 1 y devuelve 100%.

     

     

    Kind Regards,
    Gökberk Uzuntaş

    📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

    🔗 Stay Connected:
    📘 Medium |
    📺 YouTube |
    💼 LinkedIn |
    📷 Instagram |
    🐦 X |
    👽 Reddit |
    🌐 Website |
    🎵 TikTok |

5 Replies

    • Dajakda's avatar
      Dajakda
      Regular Visitor

      Hola, el error es en la fórmula como tal, el cálculo no funciona o no se muestra el resultado correcto

      • uzuntasgokberk's avatar
        uzuntasgokberk
        Icon for Super User rankSuper User

        Hola Dajakda ,
        ¿Editaste el formato de la medida que solías tener número decimal y decimal 2 como se ve en la imagen? Porque según tu cálculo, el valor es 0,55. Si el valor decimal es 0 en lugar de 2, lo percibe como 1 y devuelve 100%.

         

         

        Kind Regards,
        Gökberk Uzuntaş

        📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

        🔗 Stay Connected:
        📘 Medium |
        📺 YouTube |
        💼 LinkedIn |
        📷 Instagram |
        🐦 X |
        👽 Reddit |
        🌐 Website |
        🎵 TikTok |

  • Hello!

     

     

    Theres no filters applied in left (only to the visual) pannel that can affect results? 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Dajakda ,

     

    Thanks for uzuntasgokberk  and LuizKoller reply, that's really helpful!

     

    Dajakda According to your description, the correct result seems to be rounded up, and I suggest you try uzuntasgokberk  method, adjust the number of decimal places, or use the ROUND function.

    Measure 3 = ROUND([Measure 2]/[Measure],3)

     

    If the above method doesn't work, I suggest you provide a link to a pbix file with the same problem, it's hard for me to determine what's going on until I see your file.

     

    Best regards,

    Mengmeng Li