Forum Discussion

DSmith4's avatar
DSmith4
Helper II
6 years ago
Solved

Sum by column

Hello,   I have a column, Vendor Name, and would like to take the sum of this column by each vendor. I am trying to do a formula like   Vendor Sum = CALCULATE(SUM('data'[Amount]),'data'[Vendor]) ...
  • JarroVGIT's avatar
    6 years ago

    Hi DSmith4 ,

    Unfortunately, this might not be as straight forward as you might have thought. My recommendation is to create a DAX table with like this:

    SummaryTable = SUMMARIZECOLUMNS('data'[Vendor], "Totals", SUM('data'[Amount]))

    This table will be evaluated at refresh/load and is therefor not dynamic! You can create a relationship from SummaryTable[Vendor] to 'data'[Vendor] (1 to many) and filter on the column Totals of the SummaryTable above.

    Does that suit your needs? If so, please let me know!

     

    Kind regards

    Djerro123

    -------------------------------

    If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

    Keep those thumbs up coming! 🙂