Forum Discussion

11 Replies

  • themistoklis's avatar
    themistoklis
    Community Champion

    Scarthart 

     

    Try the following formula on a measure:

    % Share =
    VAR numerator =
    SUM(INVENTARIO.....[Disponibilitad]])
    VAR denominator =
    [Rotacion Promedio Mensual]

    RETURN
    DIVIDE ( numerator, denominator )

    • Scarthart's avatar
      Scarthart
      Helper I

      themistoklis Hello, thank you very much, for answering it still does not give me what it should give me, that is, what is calculated for me in Excel, it should be the same calculation in Power BI

    • Scarthart's avatar
      Scarthart
      Helper I

      themistoklis Is there a way to do it without the need for SUM or SUMX , but to divide the values without grouping them

  • Hola, podrias mejor generar una columna formulada con la misma expresion y evitarias errores en la medidas

  • bolfri's avatar
    bolfri
    Solution Sage

    Hi,

    data that you're comparing with are different.

    Record ArticuloSourceDispon ValueRotationCalculator
    BUJA UNIVERSAL CORTAExcel on your screen13425355= 13425 / 355 = 37,8169014084507
    BUJA UNIVERSAL CORTAPower BI134250352= 134250 / 252 = 381,3920454545455

     

    Different data = Different results ðŸ™‚

    Both programs did thier job and gave correct results based on provided data.

     

    Dispon = SUM(Hoja1[Disponibilidad])
    Rotation = SUM(Hoja1[Rotación Promedio Mensual])
    Share = DIVIDE([Dispon],[Rotation])

     

    • Scarthart's avatar
      Scarthart
      Helper I

      bolfri Hi, 
      How strange since all I did was export the data.

       

      Even so, I already discovered what is happening, is that when dividing the data accumulates and I do not want it to accumulate, I only take the value visible in the table

       

      bolfri 

      • bolfri's avatar
        bolfri
        Solution Sage

        Is that solved your problem or do you need a SUMX calculation (measure that performes row by row and then agregate the result)? I am sorry, but I don't understand the meaning of this columns and their business meaning.

    • Scarthart's avatar
      Scarthart
      Helper I

      bolfri How could I split the non-summarized data as it is splitting me only the grouped correctly