Forum Discussion

santigc97's avatar
santigc97
Frequent Visitor
2 years ago
Solved

Problem with Totals and Minimum

Hello everyone,   I have a problem with a table, I have a measure and I want a sum on the total, is there an option to modify the totals and so a sum like a pivot table on Excel? I have tried anoth...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi santigc97 

     

    I would like to apologize for the belated reply.

     

    After my test, you can use the following measure:

    SalarioMinimo = 
    VAR MinimoValor =
    SUMX(
    FILTER(
    TEST,
    TEST[Atributo] = "7. SALARY" && TEST[Valor] < 0 && TEST[Weeks] = "W 0-3"
    ),
    TEST[Valor]
    )
    RETURN
    IF(ISBLANK(MinimoValor), BLANK(), MinimoValor)

     

    Result:

     

    Best Regards,
    Yulia Xu

     

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