Forum Discussion

aparedes's avatar
aparedes
Frequent Visitor
9 years ago
Solved

Hello help with sum values in the same column

Hello everyone!!

 

I´m new in this tool and I need your help in how to sum values in the same column

 

Here´s the situation:

 

I have one table and in one column I have different classifications and another column I have total of amounts.

 

The column of classification have different classifications but those classifications are repeated in all column and I need sum the ammounts for each classification

 

can you please help me with

 

Thanks and regards

  • aparedes

     

    Using measures:

     

    VentasdeFria=Calculate(Sum('Tabla'[Ventas]),Filter(Tabla,Tabla[Clasificacion]="Fria"))

    VentasdeSubProductos=Calculate(Sum('Tabla'[Ventas]),Filter(Tabla,Tabla[Clasificacion]="SubProductos"))

     

    VentaFriaandSubProductos=[VentasdeFria]+[VentasdeSubProductos]

     

    or If you want in 1 measure sum Both:

     

    VentasdeFriaandSubProductos=Calculate(Sum('Tabla'[Ventas]),Filter(Tabla,Tabla[Clasificacion]="Fria" || Tabla[Clasificacion]="SubProductos"))

6 Replies

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    aparedes

     

    Hi, please post sample data.

     

    Your data looks like:

     

    Columna A    Columna B

    CLASS1        100

    CLASS2         80

    CLASS3        70

    CLASS2       50

    CLASS3       70

     

    And you need in a visualization

     

    CLASS1 100

    CLASS2  130

    CLASS3  140

    TOTAL  370

     

    Is correct?

    • aparedes's avatar
      aparedes
      Frequent Visitor

       

      Hi, Vvelarde that is exactly that I need and here some example of my data

       

       

       

       

      thanks and regards

      • Vvelarde's avatar
        Vvelarde
        Community Champion

        aparedes

         

        Follow the Image instructions

         

        Sigue las instrucciones de la imagen