Forum Discussion

calerof's avatar
calerof
Impactful Individual
3 years ago
Solved

Total not showing up

Hi Community, I'm struggling with a total measure (m_Total Costo de Ventas Stock) not showing at all in a table visual. I made a calculation that's working fine and now I just need the total. In MS ...
  • Greg_Deckler's avatar
    Greg_Deckler
    3 years ago

    calerof OK, I believe this solves it:

    m_Total Costo de Ventas Stock = 
    VAR __table =
        SUMMARIZE (
            ARTICULOS,
            ARTICULOS[Artículo],
            "__value", [Costo de Venta de Stock]
        )
    RETURN
        IF (
            HASONEVALUE ( Costos[ARTICULO_ID] ),
            [Costo de Venta de Stock],
            SUMX (
                __table,
                [__value]
                )
        )