Forum Discussion

Nanakwame's avatar
Nanakwame
Helper II
4 years ago

Using sumx to sum same categories listed in rows within a table

Hi Experts,

 

I have a table with different departments  listed as rows and a value for each. I am trying to have dax sum all values by department. I understand sumx can help achieve this result. Any idea how i can use sumx to sum the different departmants?

 

Thank you 

3 Replies

    • Nanakwame's avatar
      Nanakwame
      Helper II

      HI amitchandak 

       

      I am trying to do a row level calculation to sum each department sales and use it in another calculation. so i am experting to row level calc to summarize the table and sum all departemnts belonging to each other 

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi Nanakwame ,

     

    Try measure like:

    measure = SUMX(VALUES('Table'[departments  ]),[total])

    If the problem still exists, please provide sample data and expected results so that we can better understand your scenario.

     

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